PDF Printing from AcroRd32 - Silent Print.
Posted on 2007-11-26
I am using the freely available AcroRd32 Active X object in a form to display some PDF files in my application. There is a list of PDF files that may be selected on the left and the selected PDF is displayed on the right in the Active X control. The user may choose to print a range of these PDF files but the code that I have written (which seemed to be straight forward) is not working correctly. If I just use the Print function of the object, I get the Adobe Print Dialog box. If I use the PrintAll function, the Adobe Reader window pops up and the User has to close it. Both of these are unacceptable.
How can I print the PDF documents, one after the other, silently without any user interaction. I want to print to the default printer using default settings at this point.
Furthermore, how can I apply a PrinterSettings object to the PDF print job, or is this possible? Thanks in advance.