Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

DataSet which print a page per Transfer line.

Posted on by 460

I am creating a report for our logistics department. The report should do the following:

1. Lets say we have an Transfer document as follow 

     Transfer-line.png

2. Now I am creating a Report which will print a INFO which mention the item description for each line

3. for the first line i have the quantity of 10 item so i need 10 pages, for the line after i have 4 item so I have 4 pages and so on.

How to achieve this in my data set, I tried to start preparing my DataSet and this how it looks like:

lines-3.PNG

Is this design is correct? and in which part do I specify that I want a new page for each item in my transfer lines?

*This post is locked for comments

  • Verified answer
    Marcellus Profile Picture
    Marcellus 2,735 on at
    RE: DataSet which print a page per Transfer line.

    Hi Mo,

    Just to confirm you would like to display the Transfer Order lines multiple times based on the Quantity and you want each instance of the Transfer Line on a separate page?

    I think you need to add an Integer Data Item as a child under the Transfer Lines data Item and on the OnPreDataItem filter the Integer table to the Quantity like this:

    SETRANGE(Number, 1, "Transfer Line".Quantity);

    Indent the Transfer Line fields under the Integer Loop.

    Now the Transfer Lines will always be repeated in your dataset as many times as the value in the Quantity field. If you need to display different things for each instance of the Transfer Line you will obviously need to write more code into the Integer Loop.

    When you add the lines to the RDLC layout into a group, go to the group properties and switch to the Page Breaks tab and mark the "Between each instance of a group".

    I hope this helps, let me know how it goes.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans