Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Michael Gill
  Where is Michael Gill?
 Illinois - United States
 Michael Gill
 To: Vijayendran
  Where is Vijayendran?
Subject: RE: REPORT
Thread ID: 22512 Message ID: 22528 # Views: 5 # Ratings: 0
Version: Visual FoxPro 5 Category: Reports and Printers
Date: Monday, April 21, 2003 4:20:12 PM         

> 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.
> Regards
> Vijyendran
> > > 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
> >
> > On Error Goto 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.


www.foxite.com - The Home of the Visual FoxPro Experts


REPORT Posted by Vijayendran @ 4/21/2003 7:55:00 AM
RE: REPORT Posted by Caij Gomez @ 4/21/2003 7:57:25 AM
RE: REPORT Posted by Vijayendran @ 4/21/2003 8:25:00 AM
RE: REPORT Posted by Michael Gill @ 4/21/2003 4:20:12 PM