Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to set a PageFooter.Visible := ppSummaryBand1.Visible?

edited December 2008 in General
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.

Comments

  • edited December 2008
    Hi Fellipe,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2008
    Hi Fellipe,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2008
    Hi Nico,

    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:
  • edited December 2008
    Hi Nico,

    It's hard to me explain, specially in English.. :o) 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:
  • edited December 2008
    Hi Fillipe,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.