I have a control number on a page that the user selects before they preview/Print. How do I keep this number to stop calculating once it has been previewed or printed. It seems when I scroll through the pages it still is renumbering everything.
I was once facing the problem of having to start the page numbering at a specified value. Ex Page 1 was 201-10, page 2 was 201-11 etc.
What I did, I don't know if it will help you is set my base page index before calling the print method. Then in my pplabel.ongettext event did the following code :
// used 2 pass settings if Report.SecondPass then Text := '201-' + IntToStr(BaseNum + Report.AbsolutePageNo)
I don't know if I remember the code exactly as it was but it's should look very similar to this.
Comments
Try setting the Report.CachePages property to true. This should fix the
issue you are having.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
specified value. Ex Page 1 was 201-10, page 2 was 201-11 etc.
What I did, I don't know if it will help you is set my base page index
before calling the print method. Then in my pplabel.ongettext event did the
following code :
// used 2 pass settings
if Report.SecondPass then
Text := '201-' + IntToStr(BaseNum + Report.AbsolutePageNo)
I don't know if I remember the code exactly as it was but it's should look
very similar to this.
Cheers
Daniel