Printer Settings question

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

TatianaS
User
Posts: 103
Joined: Mon Mar 18, 2013 4:26 pm

Printer Settings question

Post by TatianaS »

Hello,
I have a question regarding printer settings. Every time I print a document via API call PrintDocument(id, PXCVA_GetNamed), the print dialog resets the printer name to the default printer.
I checked with your Viewer, but it doesn't do it. It 'remembers' the last used printer when I print the same document for a second time.
How can I make the behavior the same as in your Viewer?

Thanks,
Tatiana
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Printer Settings question

Post by Stefan - PDF-XChange »

Hi Tatiana,

You need to read/write the Objects.Print.PrinterName before calling the PrintDocument() method.

Regards,
Stefan