NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

DOS打印中文

使用system exec模块在DOS下运行Print /D:LPT1 D:\data.txt命令,但我Data.txt里面有一些中文信息,打印出来全部是乱码,不知道有什么好的解决办法
用Report Generation toolset不适合,每次打印的时候都要跳出word窗口,很慢而且很不便捷.并且不支持逐行打印功能,所以不用Report generation toolset
 
Thanks in advance.
 
Qia
Shanghai Ceyi Sci. & Tech. Co., LTD.
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 项奖励
1 条消息(共 6 条)
6,345 次查看
或者说逐行打印能否有更好的办法
打印内容中包含中文信息
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 项奖励
2 条消息(共 6 条)
6,322 次查看
If you've a postscript printer, you can split the the postscript file, and send to the printer one piece at a time.
George Zou
0 项奖励
3 条消息(共 6 条)
6,309 次查看
How can I know my print support postscript. And how can I find the postscript file
I use inkjet printer to solve the line printing problem which I send the command and data to the VISA LPT port, and inkjet printer can response to my command.
 
e.g. I send \f, the printer will eject the paper out of the printer.
 
Laser printer seems not support line printing. but inkjet printer and pin printer can.
My problem is how can I print Chinese character in line printing mode.
It seems impossible right now.
 
maybe under the windows envirnment, I can do the line printing through the postscripth way. but I have no idea now.
 
Thanks for you help.
 
 
Qia
 
Eztest.cn
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 项奖励
4 条消息(共 6 条)
6,293 次查看
Check the printer manual.  If it does support postscript, you will find it on the manual.
 
To get the postscript file, you can use print to file.
Or you can learn how to program in postscript.  In your case, you only need output txt (Chinese or English), it shouldn't take more than 1 day to learn.  And you have the full control of layout.
 
George
George Zou
0 项奖励
5 条消息(共 6 条)
6,288 次查看
Thank you for your help, zou.
 
I found my printer don't support postscript file
Maybe I should find a printer which support postscript functions.
 
Thanks for your help again
 
Qia
Eztest.cn
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 项奖励
6 条消息(共 6 条)
6,267 次查看