How to set a PageFooter.Visible := ppSummaryBand1.Visible?
Hello, I have the ppSummaryBand1, its a summary band of a Sub-Report.
But I want to print the PageFooter, only when a SummaryBand cant visible.
in other words... the ppSummaryBand1 (Sub-Report summary), shows in the
last page of Sub-Report, ok? And I want when is the Last Page of
Sub-Report (when ppSummaryBand1.Visible := True) the PageFooter isn't show.
How I do These?
Thanks very much,
Best Regards
Fellipe H.
But I want to print the PageFooter, only when a SummaryBand cant visible.
in other words... the ppSummaryBand1 (Sub-Report summary), shows in the
last page of Sub-Report, ok? And I want when is the Last Page of
Sub-Report (when ppSummaryBand1.Visible := True) the PageFooter isn't show.
How I do These?
Thanks very much,
Best Regards
Fellipe H.
This discussion has been closed.
Comments
Your best bet would be to use the FooterBand.BeforePrint event to check the
visibility of the subreport's summary band and assign its visibility there.
Something similar to the code in the subject of this message except add a
"not" opperator...
ppFooterBand.Visible := not(ppSummaryBand1.Visible);
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Where is the Footer Band located on your report? Note that the page footer
is not supported for Child style subreports. This may be the reason the
footer band is not appearing.
------------------------------------------------------------------
Tech Tip: Subreport header/footer bands do not print for
Child type subreports.
------------------------------------------------------------------
For a subreport set to pbChild, the header/footer are not supported.
A child type subreport prints on its parent's page space and
therefore behaves more like a memo.
Options:
1. Use Title/Summary band.
2. Use GroupHeader/GroupFooter. If you need to repeat the header
when a page breaks then then you can create a group and
set StartNewPage to True.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I try, but never show me a FooterBand..
I try to put in BeforePrint and BeforeGenerate, and not work.. there is
another way?
Thanks
Fellipe H.
Nico Cizik (Digital Metaphors) escreveu:
It's hard to me explain, specially in English.. ) can I send you my
DataModule where is my report? I try many ways, but not have success.
Thanks very much
Fellipe H.
Nico Cizik (Digital Metaphors) escreveu:
If you would like, you can send a simple example demonstrating the issue in
.zip format to support@digital-metaphors.com and I'll take a look at it for
you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com