Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print chinese fonts to lpt1 without printer driver
Message
From
01/02/2000 22:20:01
 
 
To
01/02/2000 21:48:32
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00325683
Message ID:
00325944
Views:
26
>The question is how to convert a chinese font to binary data.
>
>If I crate a file without chinese, I print properly. However, when there is a chinese character, it prints wrong.
>I send my file to lpt1 by API 'CopyFile'.

The Chinese character set is not native to the target printer, so use Windows to interpret the output stream and generate the necessary print stuff. The whole approach used with the CopyFile() API is designed to avoid and bypass the GDI, but you need to use it to handle hardware independent support of non-native fonts. The printer doesn't understand the coded characters should be rendered as Chinese characters. Let Windows handle that.

If the printer understood and properly rendered the character set, Windows' GDI would be an unwanted and unneeded layer. Since the printer doesn't do that, the GSI's ability to interpret and render the output is your best friend.
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