Page 1 of 1

Regarding Report Printed Event Handler

Posted: Sat Oct 10, 2009 6:27 am
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.

Regarding Report Printed Event Handler

Posted: Mon Oct 12, 2009 2:54 am
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.