Report pages
Hi, is there any way to know in advance (before report prints) how many
pages will there be? We have some big reports and sometimes the client would
click on print and not pay attention, and it turned out to be hundreds of
pages and the printer runs out of paper. If we have something that can warn
them beforehands would help. Thank you.
Bill
pages will there be? We have some big reports and sometimes the client would
click on print and not pay attention, and it turned out to be hundreds of
pages and the printer runs out of paper. If we have something that can warn
them beforehands would help. Thank you.
Bill
This discussion has been closed.
Comments
1. You could create a two pass report and before the second pass begins,
check the Report.AbsolutePageCount property to determine the total amount of
pages. Then you could use the Report.BeforePrint event to warn the user and
cancel the report if they choose to.
2. You could print the report to a "dummy" device to calculate the pages
behind the scenes and warn the user that way. Simply creating a generic
TppDevice object and connecting its publisher to the reports would do this.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com