Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where is Printer Environment check stored?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00879098
Message ID:
00879499
Vues:
17
>Yes. My technique has always been to make a little utility program that does things like this:
>
>use reportname.frx
>go top
>replace expr with "ORIENTATION=1"+chr(13)+"PAPERSIZE=1",;
>Tag with "", Tag2 with ""

The only problem with the above approach is that it ASSUMES the same orientation and papersize. What I like to do is apply a few STRTRAN() commands to the EXPR field such as this:
lcExpr = EXPR
lcExpr = STRTRAN(lcExpr, 'DEVICE=', '*DEVICE*=')
lcExpr = STRTRAN(lcExpr, 'DRIVER=', '*DRIVER*=')
lcExpr = STRTRAN(lcExpr, 'OUTPUT=', '*OUTPUT*=')
By wrapping the keywords with asterisks, the VFP Report Writer doesn't recognize these words and just skips that line in the EXPR field. This way you are only stripping out specific lines and everything else stays as it was defined.

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