Grand Total in Summary Band using Delphi Report Builder -
i have 2 variables in detail tab using delphi report builder , running totals correct. getting data 2 sets of client data sets within delphi code.
now need grand total of total comes variables in details band calculate in summary band. how go doing this? declare global variable , set that? , if yes how use global variable 2 different totals? in advance.
(i assume mean digital metaphor's report builder - not sure if that's bundled delphi or not...)
to create grand totals:
just create summary band in designer: report->summary
, , put 2 dbcalc
components in there. assign data fields fields want summarize grand totals. works because dbcalc
component context aware - knows sort of band lives in: if it's in group footer, aggregates group, if it's in report summary section, aggregates whole report.
important: consider if need summarize subtotals, or directly aggregate data in report. depending on data types , how handle rounding, truncating, etc, there difference between 2 causes come results aren't expecting.
btw, i'm not sure why you're referring variables
- should use dbcalc
components summations - work automatically , easy use, provided put them in correct band , feed them correct data.
(all readily available in report builder docs: report builder - documentation | developer's guide, why question downvoted. supposed preliminary research before posting question here. )
Comments
Post a Comment