Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get total number of pages to print out?
Message
 
À
17/07/2000 11:47:14
Jim Walker
Scantibodies Laboratory, Inc.
Santee, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00393343
Message ID:
00393359
Vues:
16
>Is there a way to get the total number of pages for a report to print out on the report? In other words, I want the report to print out "Page 1 of 10", not just the page number. I know about "_PAGENO" for page numbers. Is there a function for "Total number of report pages"? If not, is there an easy way to accomplish this?
>
>I appreciate any help you can give,


This is from the FAQ section of the universal thread

*****
Since there is no function to calculate the total # of report, here are two suggested solution to fix it.

1) Print the report twice:
get the system variable _pepage after first print!

Report form myreport to prompt NoConsole

(print to screen but don't show to screen.. ~__^)

public totalpage
totalpage = _pepage

and use this variable in report to print.

2) Use a formula to do:
thm.:

totalpage = CEILING(RECCOUNT()/Num_of_Rec...
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform