Page Numbering
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
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
This discussion has been closed.
Comments
look at the system variable wich you can let show the page or the
page/totalpages
cu
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
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
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
http://www.digital-metaphors.com
info@digital-metaphors.com
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
http://www.digital-metaphors.com
info@digital-metaphors.com