If you create a two pass report, you can compare the Report.AbsolutePageNo to the Report.AbsolutePageCount to determine whether you are on the last page or not.
1. Be sure you are using the AbsolutePageCount and AbsolutePageNo properties of the main report object to find the page count for the entire report.
2. Are you loading templates? If so, you need to be sure you save them down as TwoPass reports or the PassSetting property will be ignored and the page count will always return 0.
Comments
If you create a two pass report, you can compare the Report.AbsolutePageNo
to the Report.AbsolutePageCount to determine whether you are on the last
page or not.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Are TwoPass reports slower/less efficient? What is the best practice when
deciding the passsettings for a report?
Cheers
Paul
yes.
AFAIK the report won't know if it's on the last page if it's not a 2 pass
report on the 2nd pass.
Ed Dressel
Team DM
My report is a report with a sub report in it.
The sub report can take up more than 1 page. When I I set the subreport to
a 2 pass report the absolute page no is always 0?
1. Be sure you are using the AbsolutePageCount and AbsolutePageNo
properties of the main report object to find the page count for the entire
report.
2. Are you loading templates? If so, you need to be sure you save them
down as TwoPass reports or the PassSetting property will be ignored and the
page count will always return 0.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com