web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Total Pages in SSRS Report

(0) ShareShare
ReportReport
Posted on by 1,447

How do I get the total number of pages in an SSRS Report in AX code? The code below does not work.

TotalNumberOfPages = this.getReportContract().parmReportExecutionInfo().parmPrintedPhysicalPages();

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    I suggest you should consider follwoing formula to find the total number of pages

    TotalNumberOfPages =TotalNoOfLinesToBePrinted/ TotalNoOfLinesPerPage;

    you can find out TotalNoOfLinesToBePrinted as per your data query

    You need to desing so that report prints some specified no of records per page, let suppose

    TotalNoOfLinesPerPage = 40

    Please verify and update us with you findings

  • DJRM Profile Picture
    1,447 on at

    How do I limit the number of lines in a report? How do I do it in visual Studio? or in AX code? I use RDP classes.

  • Suggested answer
    Community Member Profile Picture
    on at

    You need to do the page break in SSRS report design in Visual Studio

    please follow following link for more details

    technet.microsoft.com/.../ms156434(v=sql.100).aspx

    Please verify and let me  know if this helps you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans