java使用TSC共享打印机出现 priter driver not been specified

licheng.c 发布于 2013/07/29 16:54
阅读 806
收藏 1

小弟首次学习的JAVA调用TSC打印barcode,但老是出现错误,我把打印机改成本地的是没有问题的,但是一改成共享打印机就报错。求解决!。

var TSCObj;
TSCObj = new ActiveXObject("TSCActiveX.TSCLIB");
//TSCObj.ActiveXabout();


TSCObj.ActiveXopenport("\\192.168.1.48\TSC_TTP-244_Plus");



TSCObj.ActiveXdownloadpcx("D://UL.PCX", "UL.PCX");


TSCObj.ActiveXsetup("101.6", "63.5", "5", "8", "0", "2", "0");
//TSCObj.ActiveXformfeed();
//TSCObj.ActiveXnobackfeed();
TSCObj.ActiveXsendcommand("SET TEAR ON");


TSCObj.ActiveXclearbuffer();
TSCObj.ActiveXprinterfont("10", "10", "3", "0", "1", "1",
"ActiveXdll Test!!");
TSCObj.ActiveXsendcommand("PUTPCX 10,200,\"UL.PCX\"");
TSCObj.ActiveXwindowsfont(400, 200, 48, 0, 3, 1, "arial", "DEG 0");
TSCObj.ActiveXwindowsfont(400, 200, 48, 90, 3, 1, "arial", "DEG 90");
TSCObj.ActiveXwindowsfont(400, 200, 48, 180, 3, 1, "arial", "DEG 180");
TSCObj.ActiveXwindowsfont(400, 200, 48, 270, 3, 1, "arial", "DEG 270");
TSCObj.ActiveXbarcode("100", "40", "128", "50", "1", "0", "2", "2",
"123456789");
TSCObj.ActiveXprintlabel("1", "1");
TSCObj.ActiveXcloseport();

加载中
0
_
_随风_

楼主解决了吗?

 

返回顶部
顶部