Page 1 of 1

problem in using calculated variable in footerband

Posted: Sat Sep 19, 2009 2:44 pm
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

problem in using calculated variable in footerband

Posted: Sun Sep 20, 2009 3:30 am
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.


problem in using calculated variable in footerband

Posted: Sun Sep 20, 2009 5:18 am
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