Hi

 

I have an app which uses a ShellExecute to print a whole lot of PDFs one after the other. It first assigns a different printer, prints the pdfs and then assigns back to the default printer. It is a scheduled job. The problem is that it is printing some of the pdfs on the correct printer, and some on the default printer. What I think is happening, is that Acrobat is still busy spooling the pdfs, when I re-assign the default printer and close my app. Since the printer has been re-assigned to the default, the remaining pdfs that are still in the process of being spooled, end up on the default printer. (My re-assign to default printer has a sendmessage which broadcasts the printer change to all apps).

 

I'm not that familiar with the printer unit. I want to either pause my app from reassigning the default printer and closing, until all the files have been spooled, or until the spooler is empty. So I either need to see if Acrobat is still open and wait, or see if the spool queue still has entries and wait.

 

Any suggestions on how to do either of these?

 

Thanks.

Dave Jollie
Developer, TOWER NZ IT

(: 09 368 4259
Ê: 09 306 6801
*: [EMAIL PROTECTED]
.: 46 Parnell Rd, Parnell, Auckland

 

Reply via email to