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?
0
Comments
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 trick
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>