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:
Cookies are necessary in order to enable you to move around the website and use its features,
including making purchases through our online store.
We need cookies in order to determine the number of unique users who visit the site,
and to provide certain features, such as the login functionality.
We do not use cookies for advertising purposes.
By clicking "Accept" (or continuing to use the site) you are agreeing to our use of these tools.
Learn More
You can contact us by phone, email or our social media accounts — we are here to assist you.