Page 1 of 1

Return number of rendered pages to caller application

Posted: Wed Jan 28, 2026 4:27 pm
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

Re: Return number of rendered pages to caller application

Posted: Wed Jan 28, 2026 9:47 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: Return number of rendered pages to caller application

Posted: Fri Feb 06, 2026 1:31 pm
by r.bianco
Thank you, worked like a charm

Re: Return number of rendered pages to caller application

Posted: Fri Feb 06, 2026 6:03 pm
by Lech Kulikowski
Hello,

You are welcome.