Quantcast
Channel: PDFCreator English - pdfforge forums
Viewing all articles
Browse latest Browse all 1251

Set default printer via COM

$
0
0

@rolfs wrote:

Hi All,
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!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1251

Trending Articles