使用foxpro打印汉字 [英] printing chinese characters using foxpro

查看:109
本文介绍了使用foxpro打印汉字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在打印包含中文字符的收据时遇到问题,不知怎的,我设法通过使用Unicode在我的应用程序中显示中文字符,并将区域设置为中文。

但是当我打印包含中文的文本文件时,它会显示特殊字符。

我的代码是这样的,



将设备设置为打印机

CSTR = Chrtran(Filetostr(cfiletoprint),{,})

??? CSTR



cfiletoprint是系统生成的文本文件,

但是当我直接从文本文件打印时,它打印得很完美,

谢谢

Hi Everyone,
I have a problem in printing receipt that contain Chinese characters, somehow I manage to show Chinese characters in my application by using Unicode, and setting the regional to Chinese.
But when I'm printing the text file that contained Chinese, it shows special characters.
My code is like this,

Set Device To Printer
CSTR= Chrtran(Filetostr(cfiletoprint),"{","}")
???CSTR

cfiletoprint is the text file generated by the system,
but when I'm printing it directly from the textfile, it prints perfectly,
Thanks

推荐答案

你怎么能希望从这个石器时代的跛脚中得到好的东西?难怪Unicode支持它是一个你不想处理的完全混乱。请参阅:

http://www.west-wind.com/presentations /foxunicode/foxunicode.asp [ ^ ]。



-SA
How can you hope to get something good from this stone-age lame? No wonder Unicode support it a complete mess you would not like to deal with. Please see:
http://www.west-wind.com/presentations/foxunicode/foxunicode.asp[^].

—SA


这篇关于使用foxpro打印汉字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆