How to know if an report is printed or exported ? and how to change frxobject given this ?
Hi,
Our reports (mainly quotes and invoices) are printed on 'Preprinted' papers (logo + marketing text are printed on the paper).
All report are designed with logo and marketing text.
Now our customer want to send generated reports via Email. They want to include logo + marketing text when exported to email (I will add this logo + text in my report).
I'm a little bit stuck, how can I perfrom this task at runtime (pascal script) :
- hide my logo + marketing text when printing
- display my logo + marketing text when exporting
Thank you in advance for any help.
Best regard,
Stephane Wierzbicki
Our reports (mainly quotes and invoices) are printed on 'Preprinted' papers (logo + marketing text are printed on the paper).
All report are designed with logo and marketing text.
Now our customer want to send generated reports via Email. They want to include logo + marketing text when exported to email (I will add this logo + text in my report).
I'm a little bit stuck, how can I perfrom this task at runtime (pascal script) :
- hide my logo + marketing text when printing
- display my logo + marketing text when exporting
Thank you in advance for any help.
Best regard,
Stephane Wierzbicki
Comments
Hi,
Try to hide this object in onPrintEvent .
Try to hide this object in onPrintEvent .
[/quote]
the onprintevent object behave the same was if the report is printed or exported !
Right now there is no way to determine if the report was printed or exported.
Did anyone else found a solution for this ?
as you already are on the finished pages, and you want to alter a design property.
in my own work i run the internal(inhouse printing for snail mail delivery customers) separately
from the exportable printing. same report just set printable props to false of the objects you don't want printed.
i also have a boolean flag in the customer table to indicate if email exporting is used