New Forum | Previous | Next | (P-PDF) Developers
Topic: How to Print From Visual Basic?
Conf: (P-PDF) Developers, Msg: 82880
Date: 3/14/2003 03:37 PM
Our PDM sytem has a batch printing process which creates a temp folder on a Print Host machine (for each file to be printed), then sends the print file, along with a batch file containing the following information on the command line:
myprogram.exe -f filname.pdf -p printername -papersize letter -orientation landscape
The executable "myprogram.exe" will parse the command line, then invokes the printing with the desired options, depending on the particular file type.
In the case of PDFs, I need "myprogram.exe" to silently launch Acrobat 5.0 and print to the specified printer, paper size and orientation without any user interaction.
What is the best way to automate the PDF printing routine from Visual Basic?
[Note that the PDM system will at the same time be creating other temporary folders and will be launching the same program (also interacting with Acrobat), so the programs cannot step on each other.]