Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fast Printing
Message
From
22/11/1999 10:10:58
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00293827
Message ID:
00293883
Views:
24
>Goodmorning UT,
>
> I have a question about printing in windows. Is there a way I could send a report to printer in text mode just like DOS does? This would really help speed up printouts because graphical printing takes so long on dot-matrix printers.
>

Again, this has been beaten to death in the past two weeks, but you have a couple of options available:

(1) Install the printer under Windows as a Generic/Text Only printer. The output stream will be sent as ASCII text. I'd suggest designing your report with a monospaced font in order to get the alignment correct.

(2) Print to a file with the ASCII clause, and then copy the resulting file to the printer port. There's a FAQ entry on how to copy a file to a printer port here on UT using the CopyFile() API.

(3) If you know that the only printer you're ever going to support is that particular model, design the report using the native fonts of that printer. Warning: if you do this, and later have to support a printer that isn't identical or at least codeset and font-compatible, Windows will try to use its font substitution tables and will send the print stream as graphics.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform