I have a report with multiple sections for the some dataitem. Based on a field value sections are printed or not (controlled through SHOWOUTPUT). It seems even if SHOWOUTPUT = FALSE, the space will be taken away. That means even only one of the section is printed and lets say five sections are not, I am getting a page break with having a almost empty page.
0
Comments
John
Michael
This is not the case with the standard invoice (shipping note, etc.) of Navision. There's a small piece of code in the SalesInvoiceLine OnPreDataItem that makes sure no empty lines are printed. This is that piece of code:
MoreLines := FIND('+');
WHILE MoreLines AND (Description = '') AND ("No." = '') AND (Quantity = 0) AND (Amount = 0) DO
MoreLines := NEXT(-1) <> 0;
IF NOT MoreLines THEN
CurrReport.BREAK;
SETRANGE("Line No.",0,"Line No.");
Be sure to copy it if you have to make your own report (for the customer).
John