Excel Buffer - PrintOnlyIfDetail

james
Member Posts: 56
I have a report which is based on two tables (Vendor + Value Entry) and I've been able to export it to excel with the use of excel buffer, however I have a problem that it is printing out every record of a Vendor even if there are not any value entry's for this vendor.
The Vendor table itself within the report has PrintOnlyIfDetail set to Yes, however the excel export is not taking this into consideration (but obviously the report within Navision is excluding these Vendors)
I must be missing something simple here, or is this functionality not possible with Excel Buffer???
Thanks for any help ...
The Vendor table itself within the report has PrintOnlyIfDetail set to Yes, however the excel export is not taking this into consideration (but obviously the report within Navision is excluding these Vendors)
I must be missing something simple here, or is this functionality not possible with Excel Buffer???
Thanks for any help ...
0
Comments
-
Have you tried moving the Excel-related code into the report's Sections?0
-
Waldo - It is through the standard DataItemLink
YaK - Yes, I tried to put it into the report section, however it still prints out every Vendor even if there is no Value Entries0 -
What section type is your vendor information in?0
-
Hi James,
yes this is normal functionality. PrintOnlyIfDetail (as it implies) only affects printing, not processing. Internally in Navision the way it works, is that as the report runs through the sub item (the Vendor Entry inyour case), if ever a line is printed, then it sets a flag to say that there is detail, so print the first line. Keep in mind that the report it self, when the Vendor section is processed has no idea if sub sections (Detail) will print or not. There are too many possible ways to suppress printing.
So your solution:
remove the Data Item link, and replace it with code;[b]Vendor - On After Get Record[/b] "Vendor Ledger Entry".Setkey... "Vendor Ledger Entry".Setrange etc... If not "Vendor Ledger Entry".FIND('-') then currreport.skip;
Or something like that. I have done it heaps of times, but I am just typing from memory here.David Singleton0
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