在Windows 8 RT中将ESC / POS命令发送到热敏打印机 [英] Sending ESC/POS Commands to Thermal Printer in Windows 8 RT

查看:189
本文介绍了在Windows 8 RT中将ESC / POS命令发送到热敏打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我们有餐厅的POS(销售点)软件,可在热敏打印机上打印收据。我们使用http://support.microsoft.com/kb/322091上的类将原始数据(文本和命令)发送到Receipt打印机。 

We have POS (Point of sale) Software for restaurants, which print receipts on Thermal printers. We are using class from http://support.microsoft.com/kb/322091 to send raw data (text, and commands) to Receipt printers. 

我们正在寻找从Windows商店应用程序(或任何共享的POS打印机,如果可能)向蓝牙打印机(支持ESC / POS命令)发送相同命令的解决方案。我们可以从IOS / Android做到 - 但找不到任何
的例子如何从Win 8应用程序中做到这一点。不确定它是否可能。 

We are currently looking for solution to send same commands to Bluetooth printers (which support ESC/POS commands) from Windows store app (or any shared POS printer if it's possible). We can do it from IOS/Android - but can't find any example of how to do it from Win 8 apps. Not sure is it even possible. 

我们正在使用C#,如果它意味着什么:)这里是打印机的例子  http://www.bixolon.com/html/en /product/product_detail.xhtml?pgNum=&prod_id=19&large_cd=0003&small_cd= 

We are using C# if it means anything :) and here is example of printer http://www.bixolon.com/html/en/product/product_detail.xhtml?pgNum=&prod_id=19&large_cd=0003&small_cd= 

谢谢

推荐答案

我不相信这是目前可行的。 Windows商店应用程序中的打印通过严格抽象的打印合同管理器进行管理。要生成要打印的文档,只需在特定事件产生
时向打印管理器提供XAML / HTML表面。由于GUI生成文档,因此无法向打印机发送低级命令。我还看了一下打印机对象的扩展,我也看不到任何相关的东西。

I don't believe this is currently possible. Printing in Windows store apps is managed through a heavily abstract print contract manager. To generate the document to print you simply supply a XAML/HTML surface to the print manager when particular events are raised. As the document is generated by the GUI there is no ability to send low level commands to the printer. I've also taken a look through the extensions to the printer objects and I can't see anything related their either.

可能的情况是,您需要编写某种WinRT扩展程序,您的应用程序可以使用该扩展程序以更低的级别与驱动程序进行通信。我仍在搜索有关如何实现类似内容的文档,如果/我在b $ b找到某些内容时会发布。

The likely scenario is you'll need to write some kind of WinRT extension which is utilized by your app to communicate with the driver at a much lower level. I'm still searching for documentation on how to achieve something similar and will post if/when I find something.


这篇关于在Windows 8 RT中将ESC / POS命令发送到热敏打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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