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

Current Page Number

edited May 2002 in General
Hi,

I've got to a stage where I can display number of report pages on my form.
As I move forward through pages, the current page number also increments.
However, if I move back to previous pages, the AbsolutePageNo seems to
report the highest page number that has been viewed, not the currently
displayed page.

Any ideas?

Thanks
Alex

Comments

  • edited May 2002
    Set the report's pass property to 'twoPass', then it first builds and counts
    all pages before displaying the first one. Otherwise RB creates only those
    pages you are walking through.

    Robbi


  • edited May 2002
    Hi Robbi,

    My total page count is correct as I do use twoPass. However, when scrolling
    backwards from the last page, the AbsolutePageNo property does not appear to
    return the correct page number.

    Thanks

    Alex

  • edited May 2002
    Alex

    why don't you use the TppSystemVariable configured as vtPageSetDesc or
    vtPageSet (VarType)
    this will give you page x/y
    ans works correctly in the preview

    cu
    marc

  • edited May 2002
    Please take another look at the Reports demo in RBuilder/Reports. It
    displays the page number in the Viewer's page change event and uses the
    Viewer's FirstPage, NextPage, and Last page methods to traverse the report.
    Hopefully following this example should help you figure out where your
    problem lies.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.