Adding subreport totals
Hello,
I have a Report with many subreports inside, the report is grouped by a
field, and the subreports are in the group footer.
Each subreport has a total value (DbCalc or Variable) on its summary band.
I want to know how to get the sum of all these totals, in a variable located
also on the Group footer of the main report
TIA
I have a Report with many subreports inside, the report is grouped by a
field, and the subreports are in the group footer.
Each subreport has a total value (DbCalc or Variable) on its summary band.
I want to know how to get the sum of all these totals, in a variable located
also on the Group footer of the main report
TIA
This discussion has been closed.
Comments
Try creating an invisible TppVariable in each subreport and in the
TppVariable.OnCalc event, updating the value of a TppVariable or TppLabel
located in the main report. Be sure to use the OnCalc event to ensure the
correct values. Check out the demo below for an example because subreports
reset their values every time they print.
http://www.digital-metaphors.com/tips/RunningTotalInDetailSubreport.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com