62,621
社区成员
发帖
与我相关
我的任务
分享com.jacob.com.ComFailException: Can't map name to dispid: Visible
at com.jacob.com.Dispatch.invokev(Native Method)
at com.jacob.com.Dispatch.invokev(Dispatch.java:804)
at com.jacob.com.Dispatch.invoke(Dispatch.java:483)
at com.jacob.com.Dispatch.put(Dispatch.java:762)
at com.jacob.activeX.ActiveXComponent.setProperty(ActiveXComponent.java:164)
at filetoword.MSWordManager.readword2(MSWordManager.java:152)
at filetoword.MSWordManager.main(MSWordManager.java:131)
Exception in thread "main" com.jacob.com.ComFailException: Can't map name to dispid: Quit
at com.jacob.com.Dispatch.invokev(Native Method)
at com.jacob.com.Dispatch.invokev(Dispatch.java:804)
at com.jacob.com.Dispatch.callN(Dispatch.java:440)
at com.jacob.activeX.ActiveXComponent.invoke(ActiveXComponent.java:489)
at filetoword.MSWordManager.readword2(MSWordManager.java:168)ActiveXComponent app = new ActiveXComponent("Office12.Word.DocumentMacroEnabled.12");
//启动word
try
{
app.setProperty("Visible", new Variant(false));