I am designing report in RDLC where I need to display each record that is found as new page in report layout.
There is always same record (first found record) displayed in the report layout, but code gets correct number of employees that are set in the filter.
This is just an example:
- DataItem CopyLoop -> should be used for printing multiple page at once - copy of page; which I do not really need.
- DataItem PageLoop -> should be used for printing new page as next employee record is received.
Code of object:
- I think I do not need to use PageGroupNo nor NexPageGroupNo in version NAV2013 R2, so I commented that part of the code. If I uncomment it and run the report, there is no different at report output.
RDLC report design:
- List is added and inside that list I have added a table where data should be displayed
Report is loaded with 4 pages as expected, because 4 records with current filters are found in table Employee, just displayed data is always the first found record