In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Change printer

Xailer professional forum in English
Responder
Guest

Change printer

Mensaje 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.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Change printer

Mensaje por ignacio »

Timm,
Change:
Printer:End() => Printer:EndDoc()
Printer:nPrinterIndex := ::nDefaultPrinter => Printer:nPrinterIndex :=
nDefaultPrinter
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje
news:[email=4a01c7f8@svctag-j7w3v3j....]4a01c7f8@svctag-j7w3v3j....[/email]
> 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.
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Change printer

Mensaje por ignacio »

Timm,
Change:
Printer:End() => Printer:EndDoc()
Printer:nPrinterIndex := ::nDefaultPrinter => Printer:nPrinterIndex :=
nDefaultPrinter
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje
news:[email=4a01c7f8@svctag-j7w3v3j....]4a01c7f8@svctag-j7w3v3j....[/email]
> 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.
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Guest

Change printer

Mensaje por Guest »

Hi Ignacio,
it works now, many thanks!
Best regards, Timm.
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
Newsbeitrag news:[email=4a02afbe@svctag-j7w3v3j....]4a02afbe@svctag-j7w3v3j....[/email]
> Timm,
>
> Change:
>
> Printer:End() => Printer:EndDoc()
>
> Printer:nPrinterIndex := ::nDefaultPrinter => Printer:nPrinterIndex :=
> nDefaultPrinter
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje
> news:[email=4a01c7f8@svctag-j7w3v3j....]4a01c7f8@svctag-j7w3v3j....[/email]
>> 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.
>>
>>
>
>
Guest

Change printer

Mensaje por Guest »

Hi Ignacio,
it works now, many thanks!
Best regards, Timm.
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
Newsbeitrag news:[email=4a02afbe@svctag-j7w3v3j....]4a02afbe@svctag-j7w3v3j....[/email]
> Timm,
>
> Change:
>
> Printer:End() => Printer:EndDoc()
>
> Printer:nPrinterIndex := ::nDefaultPrinter => Printer:nPrinterIndex :=
> nDefaultPrinter
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje
> news:[email=4a01c7f8@svctag-j7w3v3j....]4a01c7f8@svctag-j7w3v3j....[/email]
>> 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.
>>
>>
>
>
Responder