Report/Showoutput

thomasrottler
Member Posts: 6
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
-
You should make sure there's no white space between the controls in the section and the "bottom" of the section. The report skips the controls when SHOWOUTPUT = False, but doesn't ignore the blank space.
John0 -
There might be another reason. I had a client, where neaerly each invoice had one or two empty pages printed out. Reason: they put the cursor somewhere below the last line and for Navision this means, a text-line, and this line is activated then and Navision is printing down to this line, producing a page break and empty pages.
Michael0 -
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).
John0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions