AfterPrint event from GroupFooter

Stimulsoft Reports.NET discussion
Post Reply
Andreas Tastler
Posts: 63
Joined: Fri Jul 17, 2009 5:00 am
Location: St. Gallen, Switzerland

AfterPrint event from GroupFooter

Post by Andreas Tastler »

Hello

I use the AfterPrint event of a GroupFooter to set the textValue in the pagefooter to some calculated value.
Sometimes the event will be fired on the page but after that, a page break will be added. So, my calculation shows the wrong value, because the group will be placed on the next page.
How can I find out, if a page break will be happened on a group?

Thank you
Andreas
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

AfterPrint event from GroupFooter

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

{LastOnPage(DataSource,"FieldName")}
Thank you.
Andreas Tastler
Posts: 63
Joined: Fri Jul 17, 2009 5:00 am
Location: St. Gallen, Switzerland

AfterPrint event from GroupFooter

Post by Andreas Tastler »

Thank you for you answer.
I also made a mistake, that I used the AfterPrint Event from the GroupFooter. But there is a child band to this Band which caused the page break. I moved the code to the ChildBand and everything is working fine.

Thank you
Andreas
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

AfterPrint event from GroupFooter

Post by Alex K. »

Hello Andreas,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply