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

Report Footer Band...

edited September 2004 in General
I've got myself very confused here....

I've got a report that may end up being 1 page, may end up being many pages.
All I want is the Footer band to print on the last page (which is sometimes
the first and only page).

But... if I set the PrintOnFirstPage to false, and the report is only 1
page long, the footer doesn't print.

Waz-up wit dat?

Thanks,
--
Kumar Manuel

Comments

  • edited September 2004
    and, please tell me there is a better way than this:

    1. Seting both PrintOnFirstPage and PrintOnLastPage to true

    2. Coding this on the footer's before print:
    if (ppReport1.PageCount>1) and (ppReport1.PageNo=1) then
    ppFooterBand1.Visible := false
    else
    ppFooterBand1.Visible := true;

    ;-)

    Thanks,
    -k-
  • edited September 2004
    Hi Kumar,

    Try making your report two pass, setting PrintOnFirstPage and
    PrintOnLastPage to True, and in the FooterBand's BeforePrint do something
    like the following...

    if ppReport1.AbsolutePageCount > 1 then
    ppFooterBand1.PrintOnFirstPage := False;

    --
    Best Regards,

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