使用“Generic / Text”Only驱动程序通过USB将原始数据发送到ZPL打印机 [英] Send Raw data to ZPL printer via USB using 'Generic/Text' Only driver

查看:3103
本文介绍了使用“Generic / Text”Only驱动程序通过USB将原始数据发送到ZPL打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi I am trying to print the barcode using ZPL command by following the same approach "Generic/Text only" but it is printing empty label and also it is working in IE only.

Can any one please help me to print a barcode using ZPL commands to ZPL printer from browser.


please find the sample code snippet here under


<div id="raw">
        <pre>
^XA^CFE^PR12^FS
^BY2^BCN,100,N^FO090,0100^FDHF9XI7A^FS
^XZ
</pre>
    </div>
    <input onclick="varitext()" type="button" value="Print" />



Script

function varitext(text) {
    text = document.getElementById('raw');
    print(text.textContent)
}

推荐答案

Srinu,如果是,那么你需要ZPL代码吗?可以从ZPL代码簿中获取它。否则,您可以使用简单的图形代码打印条形码。如果您需要以下相同的链接相同



需要标签打印帮助 [ ^ ]
Srinu, do you need ZPL code if yes then you can get it from ZPL code book. Otherwise you can use simple graphics code for printing the barcode. If you need the same below is the link for same

label printing help needed[^]


这篇关于使用“Generic / Text”Only驱动程序通过USB将原始数据发送到ZPL打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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