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.

:oPrintOptions:cPrinter

FastReport for Xailer & [x]Harbour (English/Spanish)
Responder
abebuch
Mensajes: 13
Registrado: Dom Oct 14, 2012 5:26 pm

:oPrintOptions:cPrinter

Mensaje por abebuch »

Hi,
I had code like this that worked in previous version.
it printed on the selected print. Now it's ignoring it.
nPrinter := SelectPrinterFromList()
:oPrintOptions:cPrinter := nPrinter
:oPrintOptions:lShowDialog := .f.
:PrepareReport()
:Print()
Thanks
Abe
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9246
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

:oPrintOptions:cPrinter

Mensaje por ignacio »

abebuch escribió el jue, 01 mayo 2014 23:23Hi,
I had code like this that worked in previous version.
it printed on the selected print. Now it's ignoring it.
nPrinter := SelectPrinterFromList()
:oPrintOptions:cPrinter := nPrinter
:oPrintOptions:lShowDialog := .f.
:PrepareReport()
:Print()
Thanks
Abe
Hello,
Please send a sample. BTW:
- SelectPrinterFormList() does not exist
- Property oPrintOptions:cPrinter is of type string. I guess nPrinter is not.
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
abebuch
Mensajes: 13
Registrado: Dom Oct 14, 2012 5:26 pm

:oPrintOptions:cPrinter

Mensaje por abebuch »

Hi,
by saying that it worked in previous version it should be under stood that SelectPrinterFormList() is my own function and it returns a numeric.
It the 6 days waiting for this answer, I fiddled around with this and came up that :PrepareReport() needs to be called first then :oPrintOptions:cPrinter := nPrinter and :oPrintOptions:lShowDialog := .f.
i'm not sure if this is the intended behavior.
Regards,
Abe
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9246
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

:oPrintOptions:cPrinter

Mensaje por ignacio »

abebuch escribió el lun, 05 mayo 2014 21:21Hi,
by saying that it worked in previous version it should be under stood that SelectPrinterFormList() is my own function and it returns a numeric.
It the 6 days waiting for this answer, I fiddled around with this and came up that :PrepareReport() needs to be called first then :oPrintOptions:cPrinter := nPrinter and :oPrintOptions:lShowDialog := .f.
i'm not sure if this is the intended behavior.
Regards,
Abe
May First: Bank holiday in almost all the world (your post)
May second: Bank holiday in Madrid, Spain (sorry)
May third: Saturday, not a labor day (sorry again)
May forth: Sunday, not a labor day
May fifth: First labor day
May sixth: Second labor day and this answer
BTW, glad you solved your problem.
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder