Custom code when printing report on paper
Hi Andrea,
I had to change our code to Print to a window field, and then provide buttons to print to the next destination, e.g. Printer or PDF. The print to the other destinations is in actual fact a complete reprint of the document to the appropriate destination, which allows us to implement device related code, e.g. print logos when printing to PDF, but not print logos when printing to screen or printer.
Regards
Rudolf Bargholz
—–Ursprüngliche Nachricht—–
Von: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] Im Auftrag von Andrea Zen
Gesendet: Dienstag, 12. Dezember 2017 12:51
An: OmnisDev List – English <omnisdev-en@lists.omnis-dev.com>
Betreff: Custom code when printing report on paper
Hi all,
I need to do some custom code when the user prints a report on paper.
At the moment it works when the user chooses “printer” as print destination, since I can test $cdevice in the report’s $construct.
It doesn’t work if the user chooses “screen” as report destination, and then from the screen window toolbar he clicks on “Print”. Is there a way to manage this case?
Andrea Zen
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com