Regarding Report Printed Event Handler

Stimulsoft Reports.WEB discussion
Post Reply
AbdulAleem
Posts: 37
Joined: Tue Sep 15, 2009 9:42 am
Location: jeddah

Regarding Report Printed Event Handler

Post by AbdulAleem »

Hi

Can you please provide sample code for using report PRINTED event handler.

When I create instace of StiReport Class I can find Printed Event hander and invokeprint() function.

I need to use them to count the number of prints after the report is successfully printed.

Thanks,
Abdul Aleem.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Regarding Report Printed Event Handler

Post by Edward »

Hi Abdul,

Please use the following expression to count number of rendered pages:

this.RenderedPages.Count

But this number indicates only amount of pages in the report. There is no way to control amount of printed pages, because printing is made by the browser. We can not control it.

Thank you.
Post Reply