打印并将命令发送到收据打印机 [英] Print and send commands to receipt printer

查看:150
本文介绍了打印并将命令发送到收据打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我一直在网上搜索一周,我仍然可以弄清楚收据打印机是如何工作的,特别是如何发送命令。



我需要在此PRP-085IIIT打印机上打印收据。打印机通过USB连接并使用Generic\Text Only驱动程序。 Windows 7.



我发现此链接http://support.microsoft.com/kb/322091将原始数据发送到打印机。我设法打印,但最后我无法剪切页面。从我发现的,我需要发送命令到打印机,以削减页面。这是我的主要问题,我无法弄清楚如何向打印机发送命令。



我也在使用C#来开发我的应用程序。



任何形式的帮助都会受到赞赏,因为我资源不足。



非常感谢您的帮助。

Hello to everyone,

I've been searching the net over a week, and I still can figure out how receipt printer works especially how to send commands.

I need to print a receipt to this "PRP-085IIIT" printer. The printer is connected via USB and using a Generic\Text Only driver. Windows 7.

I found this link http://support.microsoft.com/kb/322091 to send raw data to the printer. I manage to print but I can't cut the page at the end. From what I found, I need to sent command to the printer in order to cut the page. Thats my main problem, I can't figure out how to send command to the printer.

Also I'm using C# to develop my application.

Any kind of help would be appreciated because I'm out of resources.

Thanks a lot for your help.

推荐答案

使用您找到的相同链接。如果您的打印机支持命令语言,则从文档中找到它。以相同的方式发送命令,即原始数据。



如果是EPSON打印机,那么您可以使用找到的文章发送ESC / POS命令。这是ESC / POS参考



http://nicholas.piasecki.name/blog/wp-content/uploads/2009/12/ESC-POS-Command-Guide.pdf [ ^ ]



同样可以打开现金抽屉。
Use the same link you found. If your printer supports command language then find it out from their documentations. Send the command in the same way i.e. raw data.

If it is EPSON printers then you can send ESC/POS command using the article you found. Here is the ESC/ POS reference

http://nicholas.piasecki.name/blog/wp-content/uploads/2009/12/ESC-POS-Command-Guide.pdf[^]

Same way you can open cash drawer as well.


这篇关于打印并将命令发送到收据打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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