Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with _pageno variable...
Message
 
À
11/02/1999 17:04:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00186805
Message ID:
00186806
Vues:
22
Well, you could create a variable just before you issue the REPORT NOCONSOLE and store _PAGENO to it in a one-line UDF called from an object in the summary band. (i.e. make a report object whose expression is SavePageNo() or whatever, and SavePageNo can be Var = _PAGENO, RETURN CHR(0).)

But someone else will probably have a "slicker" solution.

HTH,
Rich.

>I am trying to have my report summary band ALWAYS print at the botom of the last page on the report. (using VFP6)
>
>My idea was...
> ...run the report once with the the NOCONSOLE parameter to see how many pages there are (by examining _pageno) ... Then I add a blank record to the temporary report table, and "report form ... noconsole" again and again until I finally roll over to the next _pageno, then I delete one record, and then I know my summary wil be just at the end of the last page.
>
>However, the _pageno variable does not seem to give the correct page count after the report is completed. In preview mode, the report prints about 4 lines on the second page, then prints the summary band which is about 5 lines long). But after the report runs, _pageno is equal to 1.
>
>How can I capture the real exact page count? Or, how can I get the summary band to the bottom?
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform