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

How to set the first Page Number

edited January 2008 in General
Hi,
I need to set the first page number different from 1.
On the BeforePrint event of the report I set a global variable equal to a
parameter value (NPage := Report.Parameters['FirstPageNumber'];) and is
increased in the Header in the event AfterPrint.
In the preview the page numbers are OK.
But printing from the preview, the number of the first page is not reset to
the parameter value but is increased again.
How can I solve this problem?
Regards

(Delphi 2006 prof. + Reportbuilder Enterprise 10.06

Davide

Comments

  • edited January 2008

    I tried a simple test here. I used a TppVariable and implemented the
    OnGetText event...

    Text := 'Page ' + IntToStr(Report.AbsolutePageNo + 1);


    I hard coded a 1, so that the page numbering started with Page 2. You
    altrnatively use a global variable or use a Report.Parameters[ ] item, etc.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.