problem in using calculated variable in footerband

Stimulsoft Reports.NET discussion
Post Reply
mrafieian
Posts: 8
Joined: Tue Jun 16, 2009 12:53 am

problem in using calculated variable in footerband

Post by mrafieian »

Hi
I define variable SumCredit and in BeforPrint event of Databand and add my price to this variable as this :
SumDebit1 += ACC040101.Debit;
in the end of page I want to show this variable in Footerband but it's zero , in footerband of 2nd page it's include sum of first page and so on, It's seems that we have delay in calculating of variable in Databand and showing that inb footerband therefore we can't use this sum in footerband.

Thanks
Mehrdad
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

problem in using calculated variable in footerband

Post by Jan »

Hello Mehrdad,

You have used FooterBand with PrintOnAllPages = true as i understand. In this mode report engine render footer band before rendering databand.

Thank you.

mrafieian
Posts: 8
Joined: Tue Jun 16, 2009 12:53 am

problem in using calculated variable in footerband

Post by mrafieian »

Hello Jan

But I have to show the sum (SumDebit1) in all pages because it's contains the sum of price from first row to end of current page, what do you recommand for showing sum of price in such situation(Sum of price from first page to current page)?

Thanks
Mehrdad
Post Reply