Page 1 of 1

AfterPrint event from GroupFooter

Posted: Fri Feb 11, 2011 7:53 am
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

AfterPrint event from GroupFooter

Posted: Mon Feb 14, 2011 5:06 am
by Alex K.
Hello,

You can use the following code:

Code: Select all

{LastOnPage(DataSource,"FieldName")}
Thank you.

AfterPrint event from GroupFooter

Posted: Tue Feb 15, 2011 3:28 am
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

AfterPrint event from GroupFooter

Posted: Tue Feb 15, 2011 5:42 am
by Alex K.
Hello Andreas,

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

Thank you.