Question about printing

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

Thoni
User
Posts: 12
Joined: Tue Aug 26, 2008 11:46 am

Question about printing

Post by Thoni »

Hello.

We use Delphi and the ActiveX-SDK
I have a problem in setting the correct printer for the output.

Code follows:

Code: Select all

// read the printer the customer has previously choosen
iDataIn:=Einstellungen.ReadPrinter('STANDARD');
// set the printer name
CoPDFXCview1.SetProperty('Print.PrinterName',iDataIn,0);
//print with dialog
CoPDFXCview1.PrintDocument(iActiveDocID,0);
When the print-dialog pops up, it still has the default windows printer as target.
What am i missing?
And yes, the printer in iDataIn still exist.

//EDIT
Figured out:
In the first call the dialog states the "Wndows-Default-Printer" as target.
If i run it a second time, the dialog states the printer in iDataIn (correct!!!) as target
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7372
Joined: Wed Mar 25, 2009 10:37 pm

Re: Question about printing

Post by Paul - PDF-XChange »

Sorry for taking so long to get to this. I've asked our developers to take a look at this. You shaould have something soon.
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Question about printing

Post by Vasyl - PDF-XChange »

This bug was fixed already in the 41.5 build. Please update your copy.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.