通过 USB 将原始 ZPL 发送到 Zebra 打印机 [英] Send raw ZPL to Zebra printer via USB

查看:96
本文介绍了通过 USB 将原始 ZPL 发送到 Zebra 打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,当我将 Zebra LP 2844-Z 插入 USB 端口时,计算机会将其视为打印机,我可以像任何其他通用打印机一样从记事本打印.但是,我的应用程序具有一些条形码功能.我的应用程序解析一些输入并生成 ZPL 的内存字符串.我如何将此 ZPL 数据发送到我的 USB 设备?

Typically, when I plug in my Zebra LP 2844-Z to the USB port, the computer sees it as a printer and I can print to it from notepad like any other generic printer. However, my application has some bar code features. My application parses some input and generates an in-memory string of ZPL. How would I send this ZPL data to my USB device?

推荐答案

我发现了一种通过 COM 端口写入 Zebra 打印机的更简单方法.我转到 Windows 控制面板并添加了一台新打印机.对于端口,我选择了 COM1(打印机插入的端口).我使用了通用/纯文本"打印机驱动程序.我禁用了打印后台处理程序(打印机首选项中的标准选项)以及所有高级打印选项.现在,我可以将任何字符串打印到该打印机,如果该字符串包含 ZPL,则打印机可以很好地呈现 ZPL!不需要特殊的开始序列"或类似的时髦东西.简单点!

I've found yet an easier way to write to a Zebra printer over a COM port. I went to the Windows control panel and added a new printer. For the port, I chose COM1 (the port the printer was plugged in to). I used a "Generic / Text Only" printer driver. I disabled the print spooler (a standard option in the printer preferences) as well as all advanced printing options. Now, I can just print any string to that printer and if the string contains ZPL, the printer renders the ZPL just fine! No need for special "start sequences" or funky stuff like that. Yay for simplicity!

这篇关于通过 USB 将原始 ZPL 发送到 Zebra 打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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