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);
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