Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page # of #

Status
Not open for further replies.

crnflp

Technical User
Jan 23, 2000
2
0
0
US
How do you get Foxpro 5.0 to print Page 1 of 2, Page 2 of 2 ect. and not just Page 1, Page 2. <br>

<br>

Thanks.
 
DEFINE WINDOW MyRptWindow FROM 0,0 TO 25,80 ;
TITLE 'Dummy Printing'
ACTIVATE WINDOW MyRptWindow NOSHOW
GLOBAL gnLastPage = 0
REPO FORM XXXXXXX
gnLastPage = _PAGENO
RELEASE WINDOW MyRptWindow
* Now print for real, using gnLastPage WITH REAL PAGE No.
(_PageNo 'OF' gnLastPage) can be used in report form.
**
Hope this helps :)

ramani
 
Instead of defining a new 'dummy' window just use the noconsole option when you issue the report command
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top