当前位置:编程学习 > JAVA >>

jcom打印遇到超级难题,困惑中,求高手指点~~~

java+Eclipse+Tomcat7的环境下,利用poi作成Excel后,使用jcom调用默认打印机打印的时候,在Eclipse开发环境下能正常打印的,但是直接启动Tomcat7,打印就会出现异常了。
现在的配置:jcom.jar放在calsspath下,jcom.dll放在java_home的bin下
不知道是哪里设置错了,还是漏了,已经困扰N久了,希望高手指点一下~~~

异常如下:
IDispatch::Invoke(0x783,1) failed HRESULT=0x80020009L 
jp.ne.so_net.ga2.no_ji.jcom.JComException: IDispatch::Invoke(0x783,1) failed HRESULT=0x80020009L
at jp.ne.so_net.ga2.no_ji.jcom.IDispatch._invoke(Native Method)
at jp.ne.so_net.ga2.no_ji.jcom.IDispatch.method(IDispatch.java:223)
at jp.ne.so_net.ga2.no_ji.jcom.excel8.ExcelWorkbooks.Open(ExcelWorkbooks.java:102)
at jti.web.hagumiSchedule.service.OutputService.print(OutputService.java:437)
at jti.web.hagumiSchedule.service.OutputService.sijiOutput(OutputService.java:290)
at jti.web.hagumiSchedule.action.SagyoSijisyoIkkatuInnsatuAction.outputWriteToFile(SagyoSijisyoIkkatuInnsatuAction.java:524)
at jti.web.hagumiSchedule.action.SagyoSijisyoIkkatuInnsatuAction.doAction(SagyoSijisyoIkkatuInnsatuAction.java:108)
at jti.web.common.action.CommonAction.doAction(CommonAction.java:289)
at jti.web.common.action.CommonAction.execute(CommonAction.java:200)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at jti.web.common.filter.CommonFilter.doFilter(CommonFilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:383)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
 
  --------------------编程问答-------------------- 不知道。。。帮顶下吧 --------------------编程问答-------------------- 非常感谢 --------------------编程问答-------------------- 高手在哪里??? --------------------编程问答-------------------- 你是不是没有安装adobe acrobat pro,我以前碰这个问题的时候安装这个软件就好了 --------------------编程问答-------------------- jcom.dll还要放到system32下面
补充:Java ,  Eclipse
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,