Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page Numbering
Message
De
30/06/2003 10:00:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/06/2003 09:53:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00805287
Message ID:
00805292
Vues:
21
>In vfp6 I have designed a number of reports showing the Page Number with the 'pageno' variable in the report designer field expression builder.
>
>However I want to be able to show "Page x of y" where x = current page and y = total number of pages on the report. I cannot find any such variable?
>
>Any ideas will be gratefully received
>
>Peter

That variable was introduced in VFP8, IIRC. This requires a two-pass process, to count the total number of pages. In previous versions, the workaround is to do the two-pass process yourself. In the first pass, you output the report to a file, and store the number of pages - _pageno, I believe - to a variable. In the second pass, you print the report proper, with this variable.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform