2 user zhouli user_zhouli 于 2013.07.29 16:44 提问

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

小弟首次学习的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();

1个回答

wang15049755427
wang15049755427   2014.12.07 13:24

撸主你是怎么解决的呀?

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!