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

Footer band behavior.

edited November 2001 in General
In a report i print the totals of some numeric columns in the footer band.

When the summary band of this report start, the totals in the footer bands
are correctly printed after the summary band but this type of behavior is
not ok for my need.

Only in the last page where is printed the last detail row i wish to print
the footer totals after the last detail row and before the summary band.

There is a way to do this ?

If not there is a way to create a bands that may have this behavior ?

The only solutions to this problem that i have used is to duplicate the
footer band elements into the summary band and set the footer.visible to
false in the beforeprint event of the summary band.

I use ReportBulder Enterprise 6 with Delphi 5.

Thanks in advance.

Massimo.

Comments

  • edited November 2001
    Don't know if there's a better way to do it but:
    The report has two properties:
    AbsolutePageCount and AbsolutePageNo. On the BeforePrint event of the
    FooterBand you can do something like:

    ppFooterBand1.Visible := (YourReport.AbsolutePageNo =
    YourReport.AbsolutePageCount);
    bye

  • edited November 2001
    You should create a group around the data so that it never breaks. Set it on
    a custom component, like a label in the header band or some other static
    text control. Shrink the group header band so that it isn't shown. Then you
    will get a group footer band at the end of the report in which you can place
    the data that you want before the summary.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited November 2001
    In this situation i have the same data (label and dbcalc components) in the
    footer band and in this new group band.

    Is correct ?

    Massimo


  • edited November 2001
    Since you have the new group footer band, you won't have to show the page
    footer band on the last page. Remove the page footer band from the report
    if you don't need it, or you can set it to visible false after the group
    footer prints.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.