How to Print Grand Totals on a Report

Top  Previous  Next

To print Grand Totals on a report:

1.

Add a new Detail band outside of any BREAK structures you have in the report, then follow the steps in How to suppress printing a Detail Band until explicitly called to print to always suppress printing it.

2.

Place your grand total fields on the new Detail band. Be sure to set Reset property to <None> and specify the detail or break structures on which to tally the total in the Tally property.

3.

If you are using the Clarion template family, explicitly print your grand total detail band in the Start of Before End Report embed point. If using the ABC template family, use the ThisReport.AskPreview before parent call embed to print grand totals. Make sure the filter for the Grand Total Detail is set to FALSE to prevent the print engine from printing it on its own:

       PRINT(RPT:MyGrandTotalDetailBand)