Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to Line Printers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00190731
Message ID:
00190942
Vues:
13
>I have the unenviable task of creating a customer statement report in VFP 5.1 to print on pre-printed custom size forms on a line printer. In my test setup, I can get all to work as long as I created the form with the particular printer that I have in my office selected. I did go into the Printers folder of Windows 98 and create a custom form size that matches the statement forms.
>
>The problem will arise when a new customer gets this program and has a different printer. I got the KB document titled "How to Control Printer Attrubutes at Run Time" (Q133163) and I thought my problem was solved. When I execute the steps shown in this article (which amounts to re-writing the EXPR field in the .FRX), and then clear out the TAG and TAG2 fields, the printer always reverts to 8 1/2 x 11 size paper. If I leave TAG and TAG2 alone, all works well, but I doubt that it will in a new environment.
>
>Has anyone tackled this gorilla?
>
>Dick Harrold

If all you need to do is fill in the blanks on a preprinted form, why not forget about the report tool and go directly to the printer from code? Just build a string for each line, with embedded spaces for field separation, then use the ??? command to print it.

HTH,
Rick
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform