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

First page

edited July 2008 in General
How to know if it is the first page?
Sample:

if Report.FirstPage then
begin
...
end;
?

Thanks

--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited July 2008
    something like:

    ppReport1.Engine.AbsolutePageNo = 1

    should work

    Ed Dresel
    Team DM
  • edited July 2008
    Unfortunately it did not work
    I am using PageStyle.
    And I would redimencionar the height of the footer on the first page of
    the report when some control from pagestyle are displayed.

    Ps: Controls the page-style will appear only on the first page

    thanks a lot


    Thanks

    --- posted by geoForum on http://delphi.newswhat.com
  • edited July 2008
    works fine here (10.07).

    procedure TForm1.ppPageStyle1BeforePrint(Sender: TObject);
    begin
    ppPageStyle1.Visible := ppReport1.Engine.AbsolutePageCount = 1;
    end;

    Ed Dressel
    Team DM

This discussion has been closed.