Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Simon Arnold
  Where is Simon Arnold?
 Halifax
 United Kingdom
 Simon Arnold
 To: johnvou vasquez
  
 Koronadal
 
 johnvou vasquez
 Tags
Subject: RE: # of pages in a report
Thread ID: 22352 Message ID: 22357 # Views: 8 # Ratings: 0
Version: Visual FoxPro 7 Category: Reports and Printers
Date: Wednesday, April 16, 2003 1:21:31 PM         
   


> how could i put # of pages in report.
>
> like this: Page 1 of 3
>
> there is only variable that i find which is the _pbpageno i guess.
>
> is there a variable to determine the # of pages in a report?
>
>
> thanks,
>
> john

In VFP versions before 8 you need to run the report twice.
You can do it like so:
ntot_page = 0
report form .\reports\execrep to c:\temp\<font color="Blue">exec.txt noconsole
ntot_page = _pageno


You will need to have the variable nTot_Page as part of the Page x of y statement on the report.

Then run your report again.

Simon Arnold.


COMPLETE THREAD

# of pages in a report Posted by johnvou vasquez @ 4/16/2003 12:10:48 PM
RE: # of pages in a report Posted by Simon Arnold @ 4/16/2003 1:21:31 PM
RE: # of pages in a report Posted by Pete Sass @ 4/16/2003 1:26:51 PM