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

Pagefooter

edited January 2005 in General
How do I manage to only show the pagefooter on the last page of a report.
The properties PrintOnFirstPage/PrintOnLastPage is not adequate.
If the report has only one page then the footer should be visible on the
last, first and only page, so setting PrintOnFirstPage false and
PrintOnLastpage true hides the footer !
And if the report has more than one page I can only hide the footer on the
firtspage.
It would be nice with some properties like PrintOnFirstPageONLY and
PrintOnLastpageONLY.

I have then tried to do it programatically instead:

procedure TSomeform.ppReport1FooterBand1BeforePrint(Sender: TObject);
begin
with SomeReport do
ppReport1FooterBand1.Visible:= AbsolutePageNo=AbsolutePageCount;
end;

( SomeReport.PassSetting = psTwoPass ! )

This has awkward results !
In a 3 page report I will get a blank space at the bottom of page 1, in the
same space on page 2 I'll get detailbands which will be repeated on page 3
and Page 3 has no footer !

What am I doing wrong ???

Ren? / SSV

Comments

  • edited January 2005
    Just a little correction:
    This is not true.
    The last page has it's pagefooter - but alle pages between the first and
    last has detail-bands at the bottom which are repeated on the next page.

    Ren? / SSV
  • edited January 2005
    Sorry !

    I just have to use summary instead of pagefooter !!!

    Ren? / SSV
This discussion has been closed.