Página 1 de 1

:oPrintOptions:cPrinter

Publicado: Jue May 01, 2014 11:23 pm
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

:oPrintOptions:cPrinter

Publicado: Lun May 05, 2014 11:10 am
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,

:oPrintOptions:cPrinter

Publicado: Lun May 05, 2014 9:21 pm
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

:oPrintOptions:cPrinter

Publicado: Mar May 06, 2014 7:14 pm
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,