开发者社区> 问答> 正文

java使用TSC共享打印机出现 priter driver not been ?报错

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

展开
收起
爱吃鱼的程序员 2020-06-22 17:55:27 499 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    楼主解决了吗?

     

    2020-06-22 17:55:45
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载