From: Michael Gill
Illinois - United States
Visual FoxPro 5
Reports and Printers
Monday, April 21, 2003 4:20:12 PM
This message was rated by:
> To Caij Gomez
> I am a new developer, so can you tell me in detail , what do you by _pageno? Previously i had mentioned that the pageno getting displayed is 1. No , it is actually "0" . I checked only now.
> > > I have a report wherein i have to display the page number. I created a variable for the paegno & also gave the value in "value to store" column as 0 and "Initial value" as 1. I clicked "release after report" and chose the "end of page" in the combo below.I also placed the field variable in the report. But what is getting displayed in all the pages is "1". I also chose "count" in the calculate choice option button. My page no has to be placed on top of my report.Can anybody help me?
> > >
> > > Regards
> > > Vijayendran S
> > Have u tried the _pageno report variable?
> > Foxpro Child
Hell > >
> Vijayendran S
_pageno is a standard FoxPro report variable. It keeps track of the page count for you. You put it in your report as a field with _pageno as the value. Then under the calculations of that field you have to be sure to set it to reset at END OF REPORT. If you reset it at the end of the page then every page will have the same value.
- The Home of the Visual FoxPro Experts