剪纸命令是什么? [英] What is the paper cut command?

查看:51
本文介绍了剪纸命令是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 C Sharp 上处理 Tapidata SDK 和打印机后台处理程序数据.我收到了剪纸命令,但我不知道它是什么.请解释.

I am working on Tapidata SDK and printer spooler data on C sharp. I got Paper cut command, but I don't know what is it. Please explain.

推荐答案

指示收据结束的收据分隔符.通常是剪纸命令.切纸命令可能因打印机而异.一般来说,常用的有以下三种.

The receipt delimiter that indicates the end of a receipt. It is normally the paper cut command. The paper cut command may be different depending on the printers. In general, the following three are commonly used.

0x1B 0x69
0x1B 0x64
0x1D 0x56

在收据末尾打印的文本.这样的文本在收据上下文中应该是唯一的,因为它们应该最不可能作为产品名称出现.印在收据末尾的问候语,例如感谢您的光临"、祝您有美好的一天",通常可以使用.添加文本分隔符,请使用API​​函数:addStrDelimiter(string delim).请注意,文本分隔符没有必要出现在收据的最后.相反,只要它们出现在付款块之后就可以了.

Text printed at the end of receipts. Such text should be unique in a receipt context in the sense that they should be most unlikely to appear as product name. Greetings printed at the end of a receipt, such as "Thank you for your visit", "Have a nice day", can often be used. To add text delimiters, please use the API function: addStrDelimiter(string delim). Note that It is not necessary for text delimiters to appear at the very end of receipts. Instead, as long as they appear after the payment block would be fine.

可以为一个捕获实例添加多个分隔符.但是,您应该确保对于一张收据,只会出现一个分隔符.例如,如果您设置了两个分隔符:一个是剪纸命令,另一个是打印在收据末尾的文本,则有可能将一张收据解释为两张.但是,添加多个剪纸命令作为分隔符是可以的,因为只会使用其中一个.

Multiple delimiters can be added for one capturing instance. However, you should make sure that, for one receipt, one and only one of the delimiters will appear. For example, if you set two delimiters: one is the paper cut command and the other is text printed at the end of receipts, it is possible that one receipt will be interpreted as two. It is, however, OK to add multiple paper cut commands as delimiters, as only one of them will be used.

您可以使用我们的专有驱动程序阅读有关 电子收据的更多信息和 SDK

You can read more about e-receipts on POS machines with our proprietary driver and SDK

这篇关于剪纸命令是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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