There is no way of knowing how many pages there are before printing. You can know how many pages after the first pass of printing (see the TppReport.PassSetting to psTwoPass)--but the report has to be generated before knowing how long it is going to be.
OK Ed, Is ther a way to generate the report to cachepages (or somthing else), find the totpages, do some other printing and then go back and print the report.?
The Report.PassSetting is what you need to set to psTwoPass as Ed mentions. The first pass happens before the first generated page is sent to the devices. This way you'll know the page count when the first page is sent in the second pass. In your event handlers, check if Report.SecondPass then perform your calculations.
Comments
know how many pages after the first pass of printing (see the
TppReport.PassSetting to psTwoPass)--but the report has to be generated
before knowing how long it is going to be.
--
Ed Dressel
Team DM
Is ther a way to generate the report to cachepages (or somthing else), find
the totpages, do some other printing and then go back and print the
report.?
"Ed Dressel [Team DM]" skrev i melding
The first pass happens before the first generated page is sent to the
devices. This way you'll know the page count when the first page is sent in
the second pass. In your event handlers, check if Report.SecondPass then
perform your calculations.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com