Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page count (page one of ...)
Message
 
 
À
16/09/2005 14:03:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01030415
Message ID:
01050425
Vues:
14
>>>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.

John,

To get correct total # of pages you've to print to a file first as shown in the message above.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform