通过jacob调用com组件来实现的一个web项目,现在问题是客户端调用服务端,调用的打印机是服务端的而非本地上面的打印机,各位大大怎么解决。附录部分代码:ActiveXComponent MsApp = null;
ActiveXComponent printApp = null;
try{
MsApp = new ActiveXComponent("bpac.Document");// 此处获取的是服务器的应用程序,怎么获取为本机的 printApp = new ActiveXComponent("bpac.Printer");
}catch(Exception ex){
System.out.println("未装驱动");
return;
}
Dispatch dis = MsApp.getObject();
//后面一堆打印程序
javaweb服务器标签打印机
ActiveXComponent printApp = null;
try{
MsApp = new ActiveXComponent("bpac.Document");// 此处获取的是服务器的应用程序,怎么获取为本机的 printApp = new ActiveXComponent("bpac.Printer");
}catch(Exception ex){
System.out.println("未装驱动");
return;
}
Dispatch dis = MsApp.getObject();
//后面一堆打印程序
javaweb服务器标签打印机
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货