Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page count (page one of ...)
Message
From
16/09/2005 14:03:55
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01030415
Message ID:
01050419
Views:
13
>>My users would like to see the total number of pages in a report at the bottom of each page. For example, in a ten-page report, they'd like to see "Page 1 of 10," "Page 2 of 10," etc. Is there a way to get the total page count before printing a report so I can include this number on each page?
>
>See Re: Total No. of Pages Message #789734

I've done this. Here's the code I'm using on my "Print" command button:

holdpart=part_no
totpages=0
repo form cards for part_no=holdpart noco
totpages=_pageno
REPO form cards for part_no=holdpart prev

At the bottom of my report "cards," I have:

"Page " + ALLTRIM(STR(_PAGENO)) + " of " + ALLTRIM(STR(totpages))

This works just fine on my machine, but when they try to run it at another location, "totpages" doesn't seem to come over. They're always getting:

Page 1 of 1, Page 2 of 1, Page 3 of 1, etc.

Any ideas?

Thanks!

John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform