java的B/S结构的管理系统,后台要调斑马888-TT打印机打印条形码标签,该怎么做?能给个例子最好! 20
2个回答
展开全部
用APPLET实现。
window.showModalDialog('p
<div><applet name="jZebra" code="jzebra.PrintApplet.class"
alt="jZebra did not load properly" archive="./jzebra.jar" width="0"
height="0">
<param name="printer" value="zebra">
</applet></div>
ages/gr/zebraPrintModelDialog.jsp',window,'dialogWidth=300px;dialogHeight=40px');
function monitorFinding2() {
var applet = document.jZebra;
if (applet != null) {
if (!applet.isDoneFinding()) {
window.setTimeout('monitorFinding2()', 100);
} else {
var listing = applet.getPrinters();
var printers = listing.split(',');
var obj = document.getElementById('printersList');
for ( var i in printers)
{
obj.options.add(new Option(printers[i], printers[i]))
}
}
}
}
window.showModalDialog('p
<div><applet name="jZebra" code="jzebra.PrintApplet.class"
alt="jZebra did not load properly" archive="./jzebra.jar" width="0"
height="0">
<param name="printer" value="zebra">
</applet></div>
ages/gr/zebraPrintModelDialog.jsp',window,'dialogWidth=300px;dialogHeight=40px');
function monitorFinding2() {
var applet = document.jZebra;
if (applet != null) {
if (!applet.isDoneFinding()) {
window.setTimeout('monitorFinding2()', 100);
} else {
var listing = applet.getPrinters();
var printers = listing.split(',');
var obj = document.getElementById('printersList');
for ( var i in printers)
{
obj.options.add(new Option(printers[i], printers[i]))
}
}
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2017-11-06
展开全部
如果这个打印机支持串口,可以 使用串口的
~~~~~~~
~~
~~~~~~~~~~~~~~~~
~~~~~~~
~~
~~~~~~~~~~~~~~~~
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询