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.
Re: Hide text component in PageFooter when GroupFooter is on the same page
Posted: Thu Oct 01, 2026 8:02 pm
by Lech Kulikowski
Hello,
Unfortunately, there is no simple solution to this task. Only a combined solution using scripts and Conditions can be found.
We need some time - we will try to find a solution.
Thank you
Re: Hide text component in PageFooter when GroupFooter is on the same page
Posted: Fri Oct 02, 2026 9:34 am
by Lech Kulikowski
Hello,
Please check the corrected report.
Unnecessary scripts have been removed. Now it works as required - if there is a GroupHeader, the text in the footer is not shown.
Thank you.
Re: Hide text component in PageFooter when GroupFooter is on the same page
Posted: Sun Oct 04, 2026 8:18 am
by dikan
Sorry, but i don't understand what you did there. Where are the blank pages?
There was necessary script in report: on GroupHeaderBand1.BeginRender there was if (PageNumber> 1 && PageNumber%2==1) Engine.NewPage();
If you can do it some other way it is ok, but point is in adding blank page 4 after pages 1,2,3 that have data, and throughout report so that it can be printed on both sides of paper. Check again SimpleList report which i uploaded- on first 4 pages i produced issue: THIS IS FooterBand TEST that should not be visible on page 3.
If GroupHeaderBand is always on last page that's easy - just check conditon IsLastPage and not print text, but whole point is if GroupHeaderBand is not on last page.
I do hope you can help me. Thank you for trying.
Re: Hide text component in PageFooter when GroupFooter is on the same page
Posted: Wed Oct 07, 2026 6:49 am
by Lech Kulikowski
Hello,
We need some extra time to find a solution.
Thank you.
Re: Hide text component in PageFooter when GroupFooter is on the same page
Posted: Fri Oct 09, 2026 10:44 am
by Lech Kulikowski
Hello,
Scripts in events have been modified.
Please check the modified report.
Thank you.