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

Page Count ?

edited April 2002 in General
How can I get the page count from ppReport, ppViewer or some thing else the
real Absolute Page Count ? or is there more pages in report (it is not last
page).
If in report are many pages AbsolutePageCount returns 1, and on NextPage it
calculates next, and AbsolutePageCount becomes 2 ...

Comments

  • edited April 2002
    You must do at least one pass over the report in order to know how many
    pages there are. During the first pass AbsolutePageCount will begin at 0 and
    count up until the first pass is finished. During the second pass the
    AbsolutePageCount is valid on any page. If you need to perform any
    calculation using this value, wait until the second pass. You can check
    which pass the engine is on by querying the ppReport1.FirstPass and
    ppReport1.SecondPass boolean properties.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.