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.
 
You need to get your program to do a count of how many pages there are for each report.&nbsp;&nbsp;Then you can do a<br>_pageno+'of'+xyz.page_count<br>
 
Make sure you have some wording you can find in the report like &quot;Page No#.&quot;<br>Report form to file temp.txt type acsII<br>open the file low level<br>goto end end of file<br>Look for &quot;Page No#&quot;<br>lnTotalpages = str(substr,xxxxxx,xxx,xxx)<br>close the file<br>in your report add the lnTotalPages memvar and reprinter to the printer. <p>David W. Grewe<br><a href=mailto:Dave@internationalbid.net>Dave@internationalbid.net</a><br><a href= > </a><br>
 
Of course if you are going to have to manually determine the number of pages in the report so that you can instantiate the variable (endpgno) you could run the report with the preview option--find the last page in the report and then fill the variable with that number then rerun the report to the printer.&nbsp;&nbsp;Doesn't seem very friendly does it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top