从Rails App到Star Micronics TSP 143U的POS收据打印 [英] POS Receipt Printing From Rails App to Star Micronics TSP 143U

查看:122
本文介绍了从Rails App到Star Micronics TSP 143U的POS收据打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,这似乎开始显得毫无希望了,所以我不妨提出一个问题,看看我是否可以幸运.我有一台星形Micronics TSP 143U收据打印机连接到Lantronix xPrintServer Home Edition,以使AirPrinting可以通过本地网络连接到该收据打印机. 90%的设置可以完美运行-我有一个Rails Web应用程序,该应用程序可以创建一张收据并使用CSS打印媒体查询对其进行格式化,Star Printer通过USB插入xPrintServer,并在30秒内自动找到并配置,我所有的iOS设备都可以检测到打印机并启动打印作业.为了打印作业,我在页面加载时使用了javascript document.print()调用.

Ok, this is starting to seem like a bit of a hopeless situation so I might as well throw a question out there to see if I can get lucky. I have a star micronics TSP 143U receipt printer connected to a Lantronix xPrintServer Home Edition to enable AirPrinting to the receipt printer over the local network. 90% of the setup works perfectly -- I have a rails webapp that creates a receipt and formats it using a css print media query, the Star Printer gets plugged in via USB to the xPrintServer and is found and configured within 30 seconds automatically, and all of my iOS devices can detect the printer and initiate print jobs. To print the job I use a javascript document.print() call on page load.

一切正常,除了启动打印作业后,打印机将打印所需的内容,然后不停止进纸或切断收据.有什么方法可以使用CSS格式化HTML文档,以使打印机在最后一行文本之后停止打印?或者,是否可以通过移动Safari浏览器向本地网络上的打印机发送esc/p2转义命令(根据他们的文档,cut命令是esc d)?

Everything works fine, EXCEPT when a print job is initiated, the printer prints what is needed and then does not stop feeding paper or cut the receipt. Is there any way I can format the HTML document using CSS to induce the printer to stop printing after the last line of text? Alternatively, is there any way I can send an esc/p2 escape command to a printer on the local network from a mobile safari browser (according to their docs the cut command is esc d)?

推荐答案

这是来自Star Micronics技术支持的Matt. tsp100不支持打印服务器,而我们在ios上支持通过usb进行打印的唯一方法是将打印机连接到Apple Airport.此外,我们不支持ios的航空打印或任何网络打印,而仅支持旨在使用我们网站上的sdk与我们的打印机配合使用的应用程序.这可能是问题的原因.

This is Matt from star micronics tech support. The tsp100 does not support print servers and the only way we support printing via usb on ios is to connect the printer to an apple airport. In addition we don't support airprint or any web printing from ios, only from apps that were designed to work with our printers using the sdk on our website. This could be the cause of the issue.

如有疑问,请联系star tech support-800 782 7636 option 3或发送电子邮件至support@starmicronics.com

If you have questions please contact star tech support-800 782 7636 option 3 or email support@starmicronics.com

这篇关于从Rails App到Star Micronics TSP 143U的POS收据打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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