New Forum | Previous | Next | (P-PDF) Developers
Topic: Automated printing of PDF files
Conf: (P-PDF) Developers, Msg: 133432
Date: 5/27/2005 01:32 AM
I have a VBA macro that must print a big number of MS-Word and PDF documents. The documents must be printed in the exact order they are submitted.
According to the extension of the file, I call either (Word)
ShellExecute(0, "print", FileName, "", "", SW_SHOWNORMAL)
Because Acrobat Reader prints asynchrounsly, the documents comes out in wrong order at the printer (MS-Word has time to print several documents before the PDF, which was sent before to the printer, appears in the printer queue).
To avoid this problem, I've put a timer that waits 4 seconds after PDF printing and before printing the next document.
Now, since we've upgraded Windows XP with SP2, it appears this this is not enough. PDF printing takes a long time.
Is there a solution ?
Where does this delay comes from with SP2 ? Is there a way to avoit it ?
Is there a way to automatically print synchronously with Acrobat Reader ?