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

Find tot pages

edited April 2003 in General
Hi!

I try to find the total pages of a report before i pritnt it, but cant find
out how to do it , can you plase help ?

Comments

  • edited April 2003
    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.

    --
    Ed Dressel
    Team DM
  • edited April 2003
    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.?



    "Ed Dressel [Team DM]" skrev i melding
  • edited April 2003
    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.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.