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

Summary on footer of last page

edited May 2003 in End User
Hi

I have most probably missed something very simple here, I am using the
End-User Report Explorer to design a report. The report must print an RTF
field then print a section on the last page of the report where the Client
will read a disclaimer notice and sign the printed report. This section
needs to be placed at the foot of the last printed page.

The Summary band would seem to be the best place for this but I cannot find
a way to get it printed on the foot of the page.

So I tried placing it in a Footer band and selecting that the footer is only
printed on the last page. This does print it correctly but if the report is
only one page long it does not print the footer. If the report is more than
a page a gap is left at the bottom of all pages prior to the last page, the
report seems to be reserving space on the page even if the footer is not
printed.

This seems such a basic thing to do, what am I doing wrong?

Delphi 5 UDP1
ReportBuilder 6.03 Prof

Tom Wedge
CareerVision Ltd

Comments

  • edited May 2003
    Tom,

    You need to set the PrintPosition property of the summary band. This way
    you can adjust where this band will print on the last page of the report.
    You can access the PrintPosition by right clicking inside the summary band
    or by using the Object Inspector in Delphi.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2003
    If the text I am printing is of variable length how do I set PrintPosition
    so that the Summary is in the same place at the bottom of the page? Would I
    need RAP to calculate where the text finished printing and how many report
    units it would take to position the summary correctly?

  • edited May 2003
    If it is a dynamic height detail band, then there is no way to know until it
    is finished generating. Here is an example that lets the summayr generate,
    but then moves the summary's output draw commands down the page so that it
    is aligned to the bottom above the footer.

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

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited May 2003
    Thanks Jim

    I was looking at a more user friendly solution. We are trying to replace QR
    as a report writer the user must be able to alter the reports.

    When I tried with the report placing the disclaimer message in the footer
    and printing only on last page option, it looked like this might sove our
    problem, but a space for a footer is reserved on each page. Is this because
    the report does not know about the non printing of footers when it is
    generated?

  • edited May 2003
    The problem is that the report engine doesn't know if it is the last page or
    not, so it must reserve the space at the bottom for the footer in case it is
    the last page.

    Another option is to set the footerband to be visible = false. Set the
    report PassSetting to psTwoPass. Then you know the Report.AbsolutePageCount.
    Then in the Report.OnStartPage event, code:

    if Report.SecondPass and (Report.AbsolutePageNo = Report.AbsolutePageCount)
    then
    Footer.Visible := True;


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.