Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Total Pages in SSRS Report

(0) ShareShare
ReportReport
Posted on by 1,445

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
    Community Member Microsoft Employee on at
    RE: Total Pages in SSRS Report

    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.

  • DJRM Profile Picture
    DJRM 1,445 on at
    RE: Total Pages in SSRS Report

    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
    Community Member Microsoft Employee on at
    RE: Total Pages in SSRS Report

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans