Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with _pageno
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00693557
Message ID:
00693633
Vues:
21
In addition to what Sergey has said .. you should make sure you let the user select the printer prior to running the report to a file:
=SYS(1037)
REPORT FORM MyReport TO FILE MyFile NOCONSOLE
nPages = _PAGENO
REPORT FORM MyReport TO PRINTER PREVIEW NOCONSOLE 
If you don't prompt for the printer first, you run the risk of having the first dummy pass to the file prepared with the default printer. Then when the user prints the final report, they could pick a different printer which has a different printable margin. Most of the time this won't be a problem .. but there's always that one case that can bite you.

Cathy
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform