Reset of a SumRunning Field

Stimulsoft Reports.NET discussion
Post Reply
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Reset of a SumRunning Field

Post by vorauler »

Hello

I build a report similar to this http://forum.stimulsoft.com/Default.aspx?g=posts&t=2102 and this http://forum.stimulsoft.com/Default.aspx?g=posts&t=2204.
The report build up like this:
PageHeaderBand
DataBand (Master)
HeaderBand
DataBandDetail (Child)
FooterBand
PageFooterBand

In the DataBandDetail is a field that will sum with the sumrunning, now I will reset this field to zero when the next
entry in the DataBand process.

I have also try to use a variable and the rendering event that is descriped in the documentation but with this approach
I get a result like:
Colum Variable
5 0
2 5
3 7

What can I try else to get the desired behavior.
Entry1
5 5
2 7
3 10

Entry2
4 4
1 5

Thanks
Ralf
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Reset of a SumRunning Field

Post by Alex K. »

Hello,

You can use the following code in events "After Print" DataBand(Master) component:

Code: Select all

Text3_Sum.RunningTotal = false;
Text3_Sum.Init();
Please see the sample report in attachment.

In the next prerelease build the Reset method for nulling the SumRunning will be added.

Thank you.
Attachments
555.Sample Report.mrt
(12.9 KiB) Downloaded 236 times
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Reset of a SumRunning Field

Post by vorauler »

Hello

Thank you very much, that was the solution.

Ralf
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Reset of a SumRunning Field

Post by Alex K. »

Hello,

We are always glad to help you!
Post Reply