Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Report pages

edited March 2006 in General
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

Comments

  • edited March 2006
    Hi Bill,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.