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

Page footer on last page only

edited April 2010 in Subreports
I'm fairly new to ReportBuilder and am struggling with what was a simple
concept in a previous reporting tool. I'm creating an invoice report that
lists a large header on each page, followed by details, totals and a memo in
the summary, then a signature line. The the summary is NOT marked Align to
Bottom because I want it flush up against the last of the details. But the
signature line has to be on the bottom of the page--but the last page only.

I looked through the messages here, but there are so many threads that talk
about summary bands and sub reports and sections and footers, that I gave
up--I'm sorry if the answer is here already.

One idea I gathered in my study was to use a Page Footer. But since this
prints on EVERY page, I added a BeforeGenerate event and checked the
report's PageCount comparing it with PageNo during SecondPass. Alas, only
the first page gets touched again on the second pass, so this didn't work.

I also tried various combinations of sub-reports, but have decided to quit
stumbling around and just ask for help!

Any suggestions?

I'm using RB Std v. 11.07 on Delphi 2009.

--
David Cornelius
Cornelius Concepts

Comments

  • edited April 2010
    Hi David,

    Something like the following should work for a two pass report inside the
    footer band BeforePrint event.


    if Report.SecondPass then
    Report.FooterBand.Visible := (Report.AbsolutePageNo =
    Report.AbsolutePageCount);

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2010
    Beautiful!

    I was so close--I was doing that exact thing, but in the BeforeGenerate
    event instead.

    Thank you.

    --
    David Cornelius
    Cornelius Concepts

This discussion has been closed.