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
Hide text component in PageFooter when GroupFooter is on the same page
Re: Hide text component in PageFooter when GroupFooter is on the same page
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,
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
Here is report from your demo , adjusted like i need it.
- Attachments
-
- SimpleList.mrt
- (96.27 KiB) Downloaded 19 times
-
Lech Kulikowski
- Posts: 7879
- Joined: Tue Mar 20, 2018 5:34 am
Re: Hide text component in PageFooter when GroupFooter is on the same page
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
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
-
Lech Kulikowski
- Posts: 7879
- Joined: Tue Mar 20, 2018 5:34 am
Re: Hide text component in PageFooter when GroupFooter is on the same page
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.
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.
- Attachments
-
- SimpleList_modified.mrt
- (89.39 KiB) Downloaded 2 times