Página 1 de 1

Change printer

Publicado: Mié May 06, 2009 7:25 pm
por Guest
Hi,
how can I change the printer?
I tried this:
nDefaultPrinter := Printer:nPrinterIndex
Printer:nPrinterIndex := AScan( Printer:aPrinterNames, "PDFCreator" )
Printer:StartDoc()
....
Printer:End()
Printer:nPrinterIndex := ::nDefaultPrinter
It works, but when I try to print to the default printer next the page setup
is no ok.
I use the wrong way to change the printer, I think. But what is the right
way?
Best regards, Timm.