Page 1 of 1
problem with cLast Function
Posted: Fri Jul 12, 2013 3:41 pm
by p30help
Hi
i Use Stimulsoft report .Net 2011
in Header Band i Save clast in a int Variable
but my problem is the value of int variable in same page is zero but the value in next page is correct value.
why i cant use clast in own page?
Re: problem with cLast Function
Posted: Mon Jul 15, 2013 6:36 am
by Alex K.
Hello,
Can you please send us a sample report with test data for analysis.
Thank you.
Re: problem with cLast Function
Posted: Mon Jul 29, 2013 7:59 pm
by p30help
Hi
I Attached My Report File And DataSource (Xml) File Here.
And Put Some Text in Report File to Get Faster My Point .
Please See My Report in Preview Mode (Specially First Page) to Understand My Problem.
Thanks
Re: problem with cLast Function
Posted: Wed Jul 31, 2013 2:18 pm
by HighAley
Hello.
The Page Header and Page Footer is placed on the page at the beginning of rendering. And functions cSum(), cLast() and etc are calculated in the end of rendering of whole report.
We have made some changes in your report to get the right value.
- We added store and detailed variables.
- We save link in the Get Tag event of the Text21 component.
- Calculate sum in the After Print events of the bands.
- Assign value in the After Print event of the Page.
Thank you.
Re: problem with cLast Function
Posted: Thu Aug 01, 2013 12:23 am
by p30help
Hi,
Thanks a lot, This Is Work Correctly.
But I Have Some Question About This Solution.
1- Why dose not Create "store" Variable as decimal Type.
2- Why Convert "store" Variable as "StiText"? Can you Use Below Code?
3- what is "Get Tag" Event And When this Fire?
4- What is "sender" variable in "Get Tag" event (of the Text21 component).
Thanks.
Re: problem with cLast Function
Posted: Thu Aug 01, 2013 7:25 am
by HighAley
Hello.
p30help wrote:1- Why dose not Create "store" Variable as decimal Type.
in store variable we save link to the StiText object.
p30help wrote:2- Why Convert "store" Variable as "StiText"? Can you Use Below Code?
Because of the previous answer.
p30help wrote:3- what is "Get Tag" Event And When this Fire?
We can get link to the instance of the component on the rendered page.
p30help wrote:4- What is "sender" variable in "Get Tag" event (of the Text21 component).
See previous answers.
Thank you.