开发者

Printing to IP receipt printer from ruby

Want to send text to a network receipt printer using ruby. I know the IP address of the printer. The printer is accessible through the network, but it is not directly connected t开发者_StackOverflow社区o the computer.

I'm using a Star TSP100LAN, but I'm sure it would be using the same protocol as other receipt printers.


almost all printers do speak PJL, the Printer Job Language. a simple TCP connection to printer IP should be sufficient. i don't know which port to use, but the PJL command set is well defined here(PDF).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜