Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Fix no of rows in Body

Posted on by 3,027

Hi

  I want to fix no of rows in Body in Sales Quotation Document. I want only 12 rows to print . If it is more than 12 then on next page and so on.

Thanks

*This post is locked for comments

  • Rbansode Profile Picture
    Rbansode 5 on at
    RE: Fix no of rows in Body

    In my opinion a simpler way would be to set the "MaxIteration" property to 12 on the DataItem.

  • Charan_12 Profile Picture
    Charan_12 115 on at
    RE: Fix no of rows in Body

    Hello

    i Always get an error, when doing this in business central. Has anyone got it working in bc? Please share how

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Fix no of rows in Body

    Hi Yogesh

       Can u little guide how to use integer DataItem. Currently i have Sales Header & Sales Line as DataItem

    Thanks

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: Fix no of rows in Body

    Agreed with Suresh and Yogesh. I always prefered to use integer dataitem and control number of rows with the code.

  • Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Fix no of rows in Body

    Hi.

    You need to write =CEILING(RowNumber(Nothing)/12) where 12 is the number of records to be displayed per page. You can refer below links.

    www.mssqltips.com/.../display-a-fixed-number-of-rows-per-page-for-an-ssrs-report

    mohana-dynamicsnav.blogspot.in/.../fixed-no-of-lines-in-nav-2013-rtc.html

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Fix no of rows in Body

    You can write function on rdlc report layout using code window and control the no of rows to br printed on report

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: Fix no of rows in Body

    You can make use of the Ceiling and RowNumber as suggested by Suresh Sir.

    Or you can make use of Integer Dataitem. 

    Write a code to maintain a number to display blank lines on layout (12 - no of lines getting printed).

    Adjust your code to consider if Sales Lines are more than 12.

    In Layout just add another BodyLine to iterate for specific number of blank lines to print on.

     

    -Yogesh Kulkarni
    Please verify, if you find answer helpful.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Fix no of rows in Body

    You need to create a group and use Ceiling and RowNumber function, check the below link

    www.sqlchick.com/.../displaying-fixed-number-of-rows-per-ssrs-report-page.html

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans