many years ago I think I used something like this to temporarily set PDFCreator as defaultPrinter and change it back aftewards:
DefaultPrinter := PDFCreator.cDefaultPrinter; PDFCreator.cDefaultPrinter := 'PDFCreator'; PDFCreator.cPrinterStop := FALSE; // Dynamics Nav statement to run and print a report to the system default printer REPORT.RUNMODAL(reportNr, FALSE, TRUE); PDFCreator.cDefaultPrinter := DefaultPrinter; PDFCreator.cClose;
I cannot seem to find a way to set and restore the default printer with COM version > 2.0, however. Anyone has any tips?
Thanks in advance!