Change start page number
I need to change the start page number.
I put a TppVariable on a header band and set its Value to
Report.PageNo (actually without any increment to the page number)
Unfortunately, on preview, if i go immediately to the last page, the
page number is still 1, not so if i use a SystemVariable
Another strange thing, on preview i press the next page to browse the
report page-by-page not always the value of the TppVariable is the
same of the preview dialog
I put a TppVariable on a header band and set its Value to
Report.PageNo (actually without any increment to the page number)
Unfortunately, on preview, if i go immediately to the last page, the
page number is still 1, not so if i use a SystemVariable
Another strange thing, on preview i press the next page to browse the
report page-by-page not always the value of the TppVariable is the
same of the preview dialog
This discussion has been closed.
Comments
Which event are you assigning the value of the TppVariable? Try coding this
in Delphi first so you can find the correct event and settings to use to
obtain the proper value, then move your code to RAP. This way you can trace
the event code and be sure it is firing when the page is changed.
I would suggest placing he event code in the OnCalc event and setting the
variable to calculate at the start of each page. Also if your report
contains groups or subreports, be sure to use the Report.AbsolutePageNo
property to get the page number for the entire report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Report.AbsolutePageNo is wrong when the detail of a group is more than
one page
For example, in my report i have a group that need to print several
records, some of them are printered on the second page, but PageNo and
AbsolutePageNo are still 1, while SystemVariable reports 2 on the
second page
D7 / RB.10.02
This is not a known issue.
1. Please upgrade to RB 10.06 and test with that.
2. If you are still having the same issue, please create a minimal example
that demonstrates the behavior and send it to support@digital-metaphors.com
in .zip format and I'll take a look at it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com