This project is read-only.

Report Footer Totals


The data is pulled from Sql Server using stored procedute and the report printed all totals correctly, but without changing the page, if the report printed again, the totals are doubled, and when printed 3rd time, totals became 3 times and so on.
How to overcome this behaviour? I tried to re-create the object in BeginBuildReport method, but no luck.
Any solution?


Psychlist1972 wrote Feb 14, 2012 at 8:24 PM

Reset the totals to zero when the report has finished printing. The totals aren't anything magical, they're created in event handlers using variables. See the _totals variable.

I'll update the source to do that as well.