Page 1 of 1

Reset of a SumRunning Field

Posted: Thu Aug 19, 2010 1:10 am
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

Reset of a SumRunning Field

Posted: Thu Aug 19, 2010 6:49 am
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.

Reset of a SumRunning Field

Posted: Thu Aug 19, 2010 7:35 am
by vorauler
Hello

Thank you very much, that was the solution.

Ralf

Reset of a SumRunning Field

Posted: Thu Aug 19, 2010 7:37 am
by Alex K.
Hello,

We are always glad to help you!