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:
00879543
Vues:
17
Hi,

I have a section of code for each report. 10 reports, 10 section of code. So what I stick into the expr field varies. Your method is nice though, because you can loop around a bunch of FRX files with the same code.

Joe


>>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
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform