Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any command for total page ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00777114
Message ID:
00777861
Vues:
11
Besides what Sergey said about using a temp file to avoid any page number discrepancies .. you should also get the printer before doing this. Otherwise, the temp file you create will assume the default printer .. and then for the real report, the user could pick a different print. If the two different printers have different non-printable margins you could get a discrepancy in the page counts.

Cathy

>>HI Nicholas
>>
>>There is no way in VFP 5,6,7 but u can done it by this way
>>
>>Set the TOTALPAGENO as Public Variable
>>
>> Report form rptrun to x.prn Noconsole
>> TOTALPAGENO=_PAGENO
>> ERASE x.prn
>> Report form rptrun to Print Prompt Noconsole
>
>You can also leave out the "to x.prn" to avoid having to erase the temp file. Saves good time:
>
>Report form rptrun Noconsole
>TOTALPAGENO=_PAGENO
>ERASE x.prn
>Report form rptrun to Print Prompt Noconsole
>
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform