Page 2 of 2
Re: SumRunning in DataBand: reset after change group
Posted: Fri Dec 14, 2012 8:28 am
by HighAley
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
Re: SumRunning in DataBand: reset after change group
Posted: Thu Dec 27, 2012 12:16 pm
by Fabio Pagano
Good morning.
I've noticed that if the same group is printed on two pages, the RunningTotal is reset at each page (I understand why, because in the event "after print" of the grouping i've put the reset of the RunningTotal).
Design: in the "AfterPrint" event ("Dopo la stampa" in Italian) I've put the RunningTotal reset (for two fields, one for the total on each row and one for the total of the group):
The result is that when the group goes on more than one page, the group header is printed and the RunningTotal is reset:
Do you have any suggestion?
Thank you.
Re: SumRunning in DataBand: reset after change group
Posted: Thu Dec 27, 2012 12:48 pm
by Fabio Pagano
At the moment I've solved creating a new group (above the existing one) that prints only on first page and I've put the reset code in this new group, as suggested in this thread:
http://forum.stimulsoft.com/viewtopic.php?f=8&t=5600
Don't know if there are different solutions.
Thank you.
Re: SumRunning in DataBand: reset after change group
Posted: Thu Dec 27, 2012 2:02 pm
by HighAley
Hello.
As we can see the Print on All Pages property of the Group Header is set to true. So the After Print event fires on the new page.
Other solution is to reset values on the After Print event of the Group Footer Band.
Thank you.
Re: SumRunning in DataBand: reset after change group
Posted: Thu Dec 27, 2012 3:34 pm
by Fabio Pagano
I've followed your suggestion and I've put the reset code (reset for the sumrunning field in the databand and for the sumrunning field in the group footer) in the GroupFooter AfterPrint event:
But the SumRunning field that I use in the GroupFooter as a total, is now printed zero:
I've solved changing it in a normal sum field:
and eliminating its reset in the after print event of the footerband, leaving only the reset for the sumrunning field in the databand:
Now it works as I wanted, with the sumrunning reset (of the sumrunning field in the databand) at change grouping and not at changing page or no reset at all (that was the problem that started this thread).
Thank you.
Re: SumRunning in DataBand: reset after change group
Posted: Fri Dec 28, 2012 7:21 am
by HighAley
Hello.
Great! We are very glad to work with such customers.
Thank you for using our product.