NAV 2015 - Footer Only On Last Page (Here we go again!!!)

bhalpin
Member Posts: 309
Apologies as this has probably been beaten to death. But I've been out of the loop for a few years and now have a "requirement" for a .(sizable) footer to be printed only on the last page of a purchase order. Searches have lead me through "impossible" to using a sub-report.
The sub-report approach sounds intriguing - but any mention of it has very little detail, and examples are not in the dev environment I am in - NAV 2015 and SQL Report Builder. In RB I see "Insert > Sub-Report" , but this action is only available in the body section. Is that what is meant?
So ... if this is a fool's errand and not worth pursuing then fine. I can live with that.
But if there is merit in the sub-report approach then some pointers/examples would be great.
Thanks in advance!
Bob
Oh - since they could probably live with the "footer" not being at the bottom of the page - as long as it only prints once at the end- then maybe having a detail line in the body section that has Visibility toggled by a flag in the data might work ... Thoughts?
The sub-report approach sounds intriguing - but any mention of it has very little detail, and examples are not in the dev environment I am in - NAV 2015 and SQL Report Builder. In RB I see "Insert > Sub-Report" , but this action is only available in the body section. Is that what is meant?
So ... if this is a fool's errand and not worth pursuing then fine. I can live with that.
But if there is merit in the sub-report approach then some pointers/examples would be great.
Thanks in advance!
Bob
Oh - since they could probably live with the "footer" not being at the bottom of the page - as long as it only prints once at the end- then maybe having a detail line in the body section that has Visibility toggled by a flag in the data might work ... Thoughts?
0
Comments
-
I'm just throwing an idea out there, without having it actually tried, but:
What if you added conditional "hidden" property to the footer textboxes/tables (or the entire thing), and set it to "=Globals.PageNumber <> Globals.TotalPages)"? PageNumber property works only on Header and Footer, so if you do a check for whether the current page is the last page, and base the visibility of the elements on it, it should in theory do the trick0 -
Unfortunately no. This won't work. Well - it does - a bit. You can specify in the Footer Properties to print only on the last page, but unfortunately whatever space/height the footer section is set to is reserved/blank on prior pages. So if your footer is "large" (as in this case) there is a big blank space at the bottom of all but the last page.
I should have been clearer in my initial description - and tested a bit to see (remember!) the footer property "Print on Last Page" is there. But you still have the problem of the blank area on prior pages.
<IMHO>
RDLC sure is a powerful and rich report environment - much better than the earlier "Sections" technology. But the "R" at the front means it was designed for reports - like a list of customer balances with a total at the end, or an item list where a footer is not really relevant. But here we are fighting with it to produce "documents". Hence stuff like this footer issue and the somewhat bizarre Set/GetData stuff that really makes development "interesting".
</IMHO>0 -
Ah, I see! How about then having a table with all the required footer data in the body section, then using the trick shown here to get the page no. inside the body, then use similar logic to get the totals page and apply conditional row visibility on the table's rows. Those, when hidden, do not take up space.0
-
So, how is your "Footer" different from any of the sections printed at the end of the document such as total amounts, VAT specification etc.?0
-
How is the footer different? It is BIG.0
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