Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic Printing a report form - Font
Message
De
08/04/2004 00:06:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00893044
Message ID:
00893164
Vues:
24
>I call a report format from a form using a generic/text only driver on a matrix printer to increase the print speed. I would like to use a compessed print or
>more than 10 characters per inch. I would like to set the printer from within the form or on the report format itself. Everything seems to revert to 10 pitch. I am printing with preview.
>
>Any help would be appreciated.
>
>Brad Trim

(See also download #9991)

I create a text-file, load it with FileToStr(), and send it to the printer with the "???" command. Previously, I send printer codes, which I obtain from the printer manual. For example, the standard Epson code to enable condensed printing is chr(15), and to disable it, chr(18).

Sample code:
FileInRam = FileToStr("FileOnDisk.txt")
??? chr(15) + FileInRam
I usually send quite a few more codes, to ensure the printer is in a "reproducible" condition. IOW, codes to reset any possible previous changes.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform