Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing at draft speed not NLQ
Message
From
04/02/2004 20:52:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/02/2004 13:51:05
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00874097
Message ID:
00874276
Views:
7
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform