Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4155
How can i get the number of pages a report PDF contains?
posted

I generate PDF invoices using Reporting from Infragistics.  After the report has been generated, I need to know how many total pages the resulting PDF is.  I need this in my code to write to SQL table for a Fax Cover sheet that tells the recipient how many pages their invoice is etc.  How can i accomplish this?

Parents
No Data
Reply
  • 34510
    Offline posted

    Hello Travis,

    When the report has finished loading, there is an event on the XamReportViewer that is fired called ProcessingCompleted.  One of the event arguments for this event is the total number of pages in the report.  You can store this value to use later after you export the report to PDF.

Children