SumRunning in DataBand: reset after change group
Re: SumRunning in DataBand: reset after change group
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Re: SumRunning in DataBand: reset after change group
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.
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.
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Re: SumRunning in DataBand: reset after change group
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.
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
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.
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.
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Re: SumRunning in DataBand: reset after change group
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.

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
Hello.
Great! We are very glad to work with such customers.
Thank you for using our product.
Great! We are very glad to work with such customers.
Thank you for using our product.