摘要:
1,首先需要下载jacob包http://sourceforge.net/projects/jacob-project/,并将jar放入lib包下,将对应系统的dll放入System32文件夹下,如果配置后的运行显示错误,可尝试下载jacob 1.11版本的包2,java代码片段 1 ActiveXComponent MsWordApp = new ActiveXComponent("Word.Application"); 2 Dispatch.put(MsWordApp, "Visible",new Variant(true)); 3 Dispatch 阅读全文