使用vb.net在收据打印机上打印阿拉伯语 [英] Print Arabic on Receipt Printer using vb.net

查看:131
本文介绍了使用vb.net在收据打印机上打印阿拉伯语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用vb.net通过收据打印机打印阿拉伯语,并且我使用RawPrinterHelper发送文件,但是...我创建的文本文件不支持阿拉伯语.

我正在使用FileOpen创建文件,并使用PrintLine写入文件.之后,我将文件传递给RawPrinterHelper.它不打印阿拉伯字符.我尝试使用UTF-8进行编码以创建UTF-8文件,但这也不起作用.

I need to print Arabic through the receipt printer using vb.net and I''m using the RawPrinterHelper to send the file but...the text file I created is not supporting Arabic.

I''m using FileOpen to create the file and PrintLine to write to the file. After that, I am passing the file to RawPrinterHelper. It not printing the Arabic characters. I tried UTF-8 for encoding to create the UTF-8 file, but that didn''t work either.

How can i solve this?

推荐答案

我不知道为什么要创建文件.您只需将适当的打印机命令和数据直接发送到打印机即可.

首先,您的打印机必须支持阿拉伯字符集.然后,您可能必须向打印机发送命令序列,以告诉打印机使用该命令集.这些信息将包含在打印机的手册中.
I have no idea why you''re creating a file. You just send the appropriate printer commands and data directly to the printer.

First, your printer has to support the Arabic character set. Then you may have to send a command sequence to the printer in order to tell it to use that set. That is information that''s going to be in the manual for your printer.


这篇关于使用vb.net在收据打印机上打印阿拉伯语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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