How to set the first Page Number
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
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
This discussion has been closed.
Comments
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