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)
abebuch
Posts: 13
Joined: Sun Oct 14, 2012 5:26 pm

:oPrintOptions:cPrinter

Postby abebuch » Thu May 01, 2014 11:23 pm

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
User avatar
ignacio
Site Admin
Posts: 8691
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

:oPrintOptions:cPrinter

Postby ignacio » Mon May 05, 2014 11:10 am

abebuch escribió el jue, 01 mayo 2014 23:23
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

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]
http://www.xailer.com
abebuch
Posts: 13
Joined: Sun Oct 14, 2012 5:26 pm

:oPrintOptions:cPrinter

Postby abebuch » Mon May 05, 2014 9:21 pm

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
User avatar
ignacio
Site Admin
Posts: 8691
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

:oPrintOptions:cPrinter

Postby ignacio » Tue May 06, 2014 7:14 pm

abebuch escribió el lun, 05 mayo 2014 21:21
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

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]
http://www.xailer.com

Return to “FastReport”