Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing at draft speed not NLQ
Message
De
04/02/2004 20:52:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/02/2004 13:51:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00874097
Message ID:
00874276
Vues:
8
>I need to print a report at draft speed and not windows NLQ.
>
>It doesnt matter which font I choose, Windows always wants to print at NLQ.
>
>Obviously I´m using dot matrix printers (Epson FX880 etc)

Check the printer manual, what codes you need to turn off NLQ. On the Epson printers I used, the code was chr(27) + "x" + chr(0) to turn NLQ off, chr(27) + "x" + chr(1) tu turn it on. (chr(27) is the ESC code.)

Typically, I would send the report to a text file, read it back with FileToStr(), and give a command similar to:
??? PrinterCodes + FileInRam
In this case, PrinterCodes would include a general reset code, the code above, code to select CPI, and perhaps a few more, like specifying page-length.
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