Printing total values

Top  Previous  Next

Grouping is often used for printing some total values in every group. For example, this can be the number of rows in the group, or sum from one of the data columns. For printing such values, the total is used. The use of totals is described in the "Data" chapter.

 

In order to print the total value in the group, you need to do the following:

 

create a total, by selecting the "Actions|New total..." item in the "Data" window;
choose the group's data band in the "Evaluate on each row of the band" combobox;
choose the group footer in the "Print on the band" combobox;
place the "Text" object, which prints the total value, on the group footer.

 

For example, for printing the number of rows in every group, configure the total as follows:

 

group5

 

In order to display the value of the total, drag it onto the group footer:

 

group_total

 

Prepared report will be like this:

 

group_total_result