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

space between detail band and footer band

edited June 2004 in General
In my report detail band, I use region to surround all component and the
detail band is dynamic height, then I place a ppline in footer with top = 0
and position = lptop, but I find that that is some white space between the
last record (the bottom region) and the line in the footer, why? I have
already try to set region parentheight to true or region stretchwithparent
to true but the white space still exist!

Comments

  • edited June 2004
    Hello,

    ReportBuilder allocates space at the bottom of a page specifically for the
    page footer. This is why you are seeing the white space between the footer
    and the last detail line. If you would like the footer to appear just below
    the last detail line on a page, you will need to either use a group footer
    or the summary band. See the following example on how to show a group
    footer on each page in your report.

    http://www.digital-metaphors.com/tips/GroupFooterOnEveryPage.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2004
    I have seen your example but still don't know how to allow the group footer
    appear just below the last detail line ON EACH PAGE. I see your group
    setting is "start new page" and "reprint group header on subsequent page",
    is these necessary for the group footer to appear just below the detail line
    ON EACH PAGE, or the group footer must appear below the last detail line (ON
    EACH PAGE, THIS IS CRITICAL AS I NEED!) without any extra setting.
  • edited June 2004
    Hi,

    The page footer band is a fixed band which ReportBuilder allocates space for
    as the report is generated. It is not possible to move the position of this
    band. I am unsure how your report is designed but you could place a
    TppVariable somewhere that increments on each page change, then break a
    group on that variable's value. This would give you a group footer for each
    page. Otherwise you will need to manually add the draw commands just below
    the detail band on each page. I posted an example of placing line draw
    commands just below the detail band on each page in your later post. You
    could use a technique similar to this to add the information you need.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2004
    My report has region that surround all component in detail band, the detail
    band may print several page, I just want on each page, after the last detail
    band of each page is printed, there is a line printed below it. From your
    post, "you could place a
    TppVariable somewhere that increments on each page change, then break a
    group on that variable's value....."
    seems easy to do, but how to set a TppVariable that increments on each page
    change and break a group on that varialbe's value?
    Also, why I can't find help for TppReport.Engine.PrintPosRect?
    In fact, there is no any help for TppReport.Engine (like its property,
    method and event), where can I find help for it?
  • edited June 2004
    Hello,

    1. The group method I mentioned before will not work if your detail are
    spanning across multiple pages. There is no built in way in ReportBuilder
    to create a band that prints on every page and snaps to the bottom of the
    detail band. I created another example that creates a psudo "Page Summary"
    band by placing a TppRegion inside the detail band and toggling its
    visiblity according to the pipeline value. Hope it helps.

    http://www.digital-metaphors.com/tips/PageSummary.zip

    2. The TppEngine routines are used for internal report generation purposes.
    The main reason the TppEngine does not have much documentation is that most
    of these methods are not meant to be used externally. The ReportBuilder
    help is one of the most comprehensive and complete documentations out there.
    Even so, we are constantly working to add and improve it. Thank you for
    your feedback.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2004
    PMFJI but I have what I think is exactly the same question.

    I'm using RB Pro 6.03 and have a Group Footer Band below a Detail band which
    breaks on a variable. I need the Group Footer Band to print just below the
    last Detail line but it doesn't, it prints at a fixed position at the bottom
    of the page (forget page-spanning for a moment). Kei mentions he has a Group
    Footer Band as well but you keep referring to a Page Footer. Are these the
    same? I infer from your comprehensive answers that it should be possible to
    have a Group Footer band print right under the last detail line but I can't
    seem to get it to work.

    Is there a property I can set?

    Any information or pointers would be greatly appreciated.

    =NLK=

  • edited June 2004
    Hi,

    The difference between a page footer and a group footer is that the page
    footer will print on each page regardless. The group footer will only print
    at a group break which could be in the middle of a page or across numerous
    pages. The issue is that the page footer is the only band in ReportBuilder
    that cannot be re-positioned on a page so you cannot have it snap to the
    last detail band. If your groups do not span multiple pages, the group
    footer should work correctly for your needs. Otherwise, you will have
    certain pages missing the footer information as Kei did. Where are your
    group footers printing on the page?

    The best solution I could come up with to workaround this limitation was to
    use a TppRegion inside the detail band to act like a new footer band. I
    posted an example of this in an earlier post on this thread.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

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