Return number of rendered pages to caller application

Stimulsoft Reports.WEB discussion
Post Reply
r.bianco
Posts: 90
Joined: Thu Oct 27, 2016 2:06 pm

Return number of rendered pages to caller application

Post by r.bianco »

Hello

We need to retrieve the number of rendered pages of a report.
Our web application (asp.net) uses a C# DLL to call the report engine, render the report and get a PDF, the DLL can connect to the database and write if needed.
The main problem is to get the right timing, also this could work only if we are printing the report as PDF and not if viewing on preview and print it from there.

Are there some other ways to do this?

Thanks in advance
Soft System srl
Lech Kulikowski
Posts: 7693
Joined: Tue Mar 20, 2018 5:34 am

Re: Return number of rendered pages to caller application

Post by Lech Kulikowski »

Hello,

After the report rendering, you can check the report.RenderedPages.Count;

Thank you.
r.bianco
Posts: 90
Joined: Thu Oct 27, 2016 2:06 pm

Re: Return number of rendered pages to caller application

Post by r.bianco »

Thank you, worked like a charm
Soft System srl
Lech Kulikowski
Posts: 7693
Joined: Tue Mar 20, 2018 5:34 am

Re: Return number of rendered pages to caller application

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply