Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printer name stored in FRX
Message
De
22/07/1999 11:36:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00243173
Message ID:
00244773
Vues:
25
>Mark,
>
>The general rule is that you blank all or part of the EXPR field in the
>first record of the FRX file, leaving all lines that set Portrait or
>Landscape, but deleting the lines that relate to SPECIFIC printers.
>
>You then also blank out the TAG and TAG2 fields of that same first
>record.
>
>This gives you an FRX which will enable your users to print to any
>printer, not just the printers you developed on.
>
>
>Michel.
>
>================ Your original message follows =====================
>
>>Thanks, I'll give it a try and see what happens.
>>
>>Mark
>>
>>>Ok, leave that part in! Since you are doing it in a program anyway, go ahead and be creative! :-)
>>>
>>>Seriously though, procede with this stuff carefully, I haven't had need to test this stuff yet, I just noticed that no one had responded to your post, and thought I could pass along what "book" learning I had.
>>>
>>>>Looking at the contents of these fields I could agree with tag and tag2, but expr contains information such as orientation, I would be hesitant to remove that since most of the reports print landscape.
>>>>
>>>>Mark
>>>>

Michel has it right. Form experience with different printers I have found the tag and tag2 fields of the first record the mosy useless. They must be deleted unless you know for a fact the user's printer. For EXPR all you need to keep is the orientation. Then even if your users use A4 or Letter the report prints as per the printer setting. Copies can be had by issuing REPO FORM ... PROMPT so the user can change the paper, printer copies etc. Be warned that printing certain pages eg 10 to 15 of a 30 page report may bring you grief. I don't know who to blame, VFP or the Printer driver.

Bernard
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform