PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.
Moderators:TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
Creates a temporary instance of PDF-XC. Next line:
"PDFPrinter.SetAsDefaultPrinter"
Sets it as default printer, if I step the code and leave it after that line I can se the teporary printer in my control panel, I can print with it. (ie. testpage).
If I now open a new empty Access and creates a form to have something to print, I can print using this teporary printer from "File Print ...", as it is the systems default printer it would be selected if I use the Print button in the menu bar. But here I get the same error as when trying to print to it from my code.
File ... Print: Selecting the temprary instance (Selected by default) Works!
Direct print to default printer (the temporary instance) Fails!
If I in my code comment the line "PDFPrinter.SetAsDefaultPrinter" and select my ordinary printer as default the code runs fine and the report are printed i my printer.