使用“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[^]