Page 1 of 1

Hide text component in PageFooter when GroupFooter is on the same page

Posted: Sat Sep 26, 2026 6:51 pm
by dikan
Hi,
is it possible to hide text component in PageFooter when GroupFooter is in the same page in DoublePass report ? Text component in PageFooter has to be enabled on all report pages except those where GroupFooter is printed. If it is possible please tell me how to do it.

Thank you

Re: Hide text component in PageFooter when GroupFooter is on the same page

Posted: Tue Sep 29, 2026 10:11 am
by dikan
Ok,i know this is actually impossible because PageFooter renders before GroupFooter, but i can't make it work even with FooterBand that prints on all pages.

So my report is DoublePass and structure is:

1 GroupHeaderBand -(has event GroupHeaderBand.BeginRender : if (PageNumber> 1 && PageNumber%2==1) Engine.NewPage(); that adds blank page in case of odd numbers for printing )
2 DataBand (contains a lot of data so it is few pages long)
3 GroupFooterBand (contains some data - it is a legal form in my country, it has to come after DataBand so it can't have NewPageBefore active)
4 FooterBand - contains TextComponent that has to be Disabled on page that has GroupFooterBand on it, and has conditon : IsLastPage then it is disabled.

I tried to use variable footerPrinted (bool) to catch when GroupFooterBand is printed but it doesn't work. If i use this:
GroupHeaderBand1.BeginRenderEvent: footerPrinted = false;
GroupFooterBand1.AfterPrintEvent: footerPrinted = true;
Textcondition: {footerPrinted} or {IsLastPage} then it is disabled

which should work like:
- Start→ GroupHeader.BeginRender → false
- Data pages (1,2): false → Text79 enabled ✓
- Page with GroupFooter (page 3): AfterPrint sets true → Text disabled ✓
- Empty page (page 4): → Text disabled

- New set of report → GroupHeader reset false → Text enabled ✓

But actual result is not that. I get>
page1 - text disabled, page 2 - text enabled, page 3,4 - text disabled
next set : page1 - text enabled, page 2, 3,4 - text disabled ...and all like that till the end of report that like 200 pages long.

Can you help me?

Thank you,

Re: Hide text component in PageFooter when GroupFooter is on the same page

Posted: Tue Sep 29, 2026 11:43 am
by dikan
Here is report from your demo , adjusted like i need it.