Can I use the PDF-XChange print driver from Delphi 5 to save a Quick Report as a PDF file without user intervention?
Please note that a user asked this question on the PDF XChange forum. They wanted to adjust the print driver settings programatically in order to suppress the Save As dialog box, specify a PDF filename/location and save to the file without the knowledge of the user. Additionally, they wanted to use a different print driver in order to print a hard copy for the user at the same time as the above.
The user's approach had been to print the hard copy and then programatically set the printer as the PDF printer and call the Quick Report print method. Their hope was that as they were not using the PDF-XChange APIs (such as PXC_WriteDocumentExA) it would be possible to change the print driver settings, programatically, each time a report was printed, and control how files were saved.
Yes - the Drivers API SDK can be used for this purpose. A sample code (in Delphi 5) is detailed below:
Sample Code:
You can contact us by phone, email or our social media accounts — we are here to assist you.