problem with cLast Function
problem with cLast Function
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?
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
Hello,
Can you please send us a sample report with test data for analysis.
Thank you.
Can you please send us a sample report with test data for analysis.
Thank you.
Re: problem with cLast Function
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
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
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.
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.
- Attachments
-
- rep_modified.mrt
- (23.99 KiB) Downloaded 181 times
Re: problem with cLast Function
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.
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?
Code: Select all
store = details.ToString();
4- What is "sender" variable in "Get Tag" event (of the Text21 component).
Thanks.
Re: problem with cLast Function
Hello.
Thank you.
in store variable we save link to the StiText object.p30help wrote:1- Why dose not Create "store" Variable as decimal Type.
Because of the previous answer.p30help wrote:2- Why Convert "store" Variable as "StiText"? Can you Use Below Code?Code: Select all
store = details.ToString();
We can get link to the instance of the component on the rendered page.p30help wrote:3- what is "Get Tag" Event And When this Fire?
See previous answers.p30help wrote:4- What is "sender" variable in "Get Tag" event (of the Text21 component).
Thank you.