How to call Batch & Print Pro from a VB program
KB ARTICLE:
KB0004
KB DATE: 16/01/2004
REQUIRES VERSION: 1.00 or above
You can call Batch & Print Pro on the
command line so in VB you can call from Shell function, e.g.
from dos the command line is "Batch And Print.exe" c:\1.pdf -p -q
because the parameters are passed in the same parameter as the main exe it's recommended to rename the "Batch And Print.exe" to "bpp.exe", e.g.
cd C:\Program Files\Traction
Software\Batch & Print Pro
Rename "Batch And Print.exe" to bpp.exe
To call BPP in your VB program, e.g.
Shell("bpp.exe c:\1.pdf -p -q", vbHide)
NOTE: For Batch & Print Pro to pick up the .ini configuration files the working directory has to be set to the location of "Batch And Print.exe", otherwise it will create new ones based on the internal default values.