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

Page Numbering

edited May 2002 in General
Hi,

I have my own preview form and upon selecting to move backwards and forwards
between pages, want the form to display the current page. I have tried
AbsoluteNbr but this appear to show total pages not current page. I've also
tried CurrentPage but this always seems to show 1. Additionally, I want to
display total pages, which seems to display OK when I move to the last page
but before that appears to only show up to the pages so far retrieved. Is
there a property which indicates whether the report has retrieved all data
or not?

Thanks

Alex

Comments

  • edited May 2002
    Alex,
    look at the system variable wich you can let show the page or the
    page/totalpages
    cu
    marc

  • edited May 2002
    Hi Marc,

    Thanks for your response. The system variable as I understand is for
    display in the report. I need to be able to accurately display the current
    and total page count not within the report but in a label on the form, so
    that when the user navigates through pages it automatically shows them which
    page they are viewing in the preview.

    Thanks

    Alex
  • edited May 2002
    Alex
    thats exactly what the ppSystemvar is for (so the systemvar component in the
    designer)
    you can put time, page, pageset etc in this label
    i don't think it matters where you put the systemvar
    if you want page/totalpages then you have to set the report to twopass...
    cu
    marc

  • edited May 2002
    As far as the total page number goes, that number will not be valid until
    the first pass of the report is complete since the pages are generated on
    demand. What you might want to do is print to the cache offscreen before you
    start traversing the pages. Look at the main reports demo in
    RBuilder/Demos/Reports and examine the main form in dmMain.pas. This
    application does exactly what you are trying to accomplish.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited May 2002
    You should set Report.PassSetting property to psTwoPass. This causes the
    report to calculate the pagination all the way to the last page (in order to
    determine the page count of the report) and then generates the first page to
    the viewer.


    Cheers,

    Jim Bennett
    Digital Metaphors

    "Alexander Kramnik (Digital Metaphors)" wrote
This discussion has been closed.