Hi !
You need to know the tag of the last line report or the number of records to print.
ReturnValue = PARENT.TakeRecord()
! [Priority 5001]
CurrentRow += 1
If CurrentRow = AllReportRow then UnHide(?GroupTotal). ! Show the total on the last
PRINT(RPT:detail)
The way the Print Engine outputs pages is somewhat a black box.
A few pages are buffered while the Engine resolves widow/orphan features of WithNext(), WithPrior(), Together etc. So after all the Details print you could Unhide your Footer controls. That Unhide will happen on the Buffered Pages so the unhid footer could end up rendering on more than just the Last Page.
Instead of a Footer I would put those controls on a DETAIL that you Print Last. Specify the ABSOLUTE attribute with the AT(X,Y) down at the bottom of the page in the Footer position.
You can use a Grand Total band for this and print it only at the end of the report…
Look at Clarion’s help for “Grand Totals” on how to use it.
Hope this help you
Ok!
The implementation worked as suggested by CarlBarnes:
→ I inserted a new ?Detail
→ in Extra I selected Absolute
→ I set the height/length/x and y to the same as the ?Footer