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

Announcements

No record found.

News and Announcements icon
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

  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans