JasperReports' iReport - generating a grand total

后端 未结 2 1812
刺人心
刺人心 2021-01-19 10:25

I have a variable datatype set up in the group footer band that generates a subtotal for the counts in each group in my report. Works great. I would like a grand total to g

2条回答
  •  伪装坚强ぢ
    2021-01-19 10:41

    Just create a new variable and in the variable expression add up all of the subtotals using their variable name

    for instance:

    $V{subtotal1}+$V{subtotal2}+$V{subtotal3}
    

    After that, throw it in the 'summary' band and in the report properties check the box that says "summary on new page". That way it'll be on the last page of your report.

提交回复
热议问题