Hi.
I am developing an Invoice layout which contains a Page Header, Body and Page Footer. The Body contains a Table within a List. The Table contains the invoice lines and totalling - it has one Group which is grouped on the Invoice Number - "Page break at end" is ticked for the Group.
The Preview looks fine but when I Print or go into the Print Layout (or output to PDF) I get an extra page of report at the end that contains the Header/Footer sections again (no lines). Ie. a one page invoice prints two pages, five one page invoices printed together prints six pages. About this Report just has a line for each invoice line (ie. no additional data) - this also contains the header information which is displayed on the Page Header via Code.GetData logic.
What have I tried?
- I've shrunk the width of the report to fit well within the PageSize/InteractiveSize/Margins, however normally if this is a problem I'd expect an extra page after each invoice, not just one on the final page
- removing the "Page break at end", however then lines from multiple invoice appear on the one invoice
- totally removing the Page Footer section, however this made no difference
Any thoughts welcome.
Regards, Gareth.
0
Answers
Microsoft Dynamics NAV Consultant
Jatin's Blog
I changed them both to different colours and found the List was being printed on the last page - it was slightly overhanging the bottom of the Table - I shrunk the list to the same height/width as the Table and this resolved the problem.
Thanks very much, Gareth.
I moved it on top of the main tablebox and the problem went away. I suspect the space between the two tableboxes was causing the same issue to happen.
Thanks!