Hi All,
I'd like to know how can I handle when the user is click on a report to 'Preview' or 'Print...'? ](*,)
Because I have to make entries about the printed documents, but I don't like to make new entry when the user is only check the document with the Preview button.
Anyone can help me in this case? Or if here is a link it will be good too.
Thank you!
Andras
Comments
You can use CurrReport.PREVIEW to determine whether or not the user prints the document or only takes a look at a preview.
Take a look at a standard Invoice, you see the following code:
IF NOT CurrReport.PREVIEW THEN
SalesInvCountPrinted.RUN("Sales Invoice Header");
When the user really prints the document, the field No. Printed will be increased, when the user only takes a look at a preview, the field remains the same.....
Kind regards,
Caffa
my email address is: zsglava@interware.hu
Thanks
It is works!