Page numbering on reports
Hi,
I have a report that the page number should begin with 5. What is the best
way to change the page numbering with +5?
I've used a systemvariable to get its value and a label to print it, like
that:
ppLabel604.Caption := IntToStr(ppSystemVariable15.CachePageCount + 5);
The problem is that at the print preview it shows ok, but when I print it,
it changes the value for a fix number = last page number, in all the pages.
If I change to directly print (devicetype=printer), it works well. How do I
fix it for devicetype=screen?
Thanks
david
I have a report that the page number should begin with 5. What is the best
way to change the page numbering with +5?
I've used a systemvariable to get its value and a label to print it, like
that:
ppLabel604.Caption := IntToStr(ppSystemVariable15.CachePageCount + 5);
The problem is that at the print preview it shows ok, but when I print it,
it changes the value for a fix number = last page number, in all the pages.
If I change to directly print (devicetype=printer), it works well. How do I
fix it for devicetype=screen?
Thanks
david
This discussion has been closed.
Comments
Use the Report.AbsolutePageNo property to access the current page number.
Label.Caption := Report.AbsolutePageNo + 5;
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com