Print totals at the beginning of a report

You can print aggregate values before the first detail row is printed.

For example, totals can be printed at the beginning for a report.

When this feature is used, the output has to be delayed until the input has been processed to the point where the variable value is shipped. In the case of a grand total, which is shipped at the end of the report, the entire input must be consumed before the document fragment containing the total would be output. If the total number of records is small, the delay will hardly be noticeable; for example, when you print the order total before printing up to a few hundred rows relating to the order.