摘要
基于软件测评项目管理文档自动化的需求,如何通过Jacob控制Word操作。首先对比了目前Java环境下常用的几种文档自动化方案,其次对Jacob和Word的相关技术原理进行了研究和论述,最后通过项目实例的代码比对,阐述了如何将VBA代码转换为Jacob执行代码,形成的方法可以推广到其它MSOffice产品的自动化操作。
With the background of the requirement of the document automatic system for software testing,the article demonstrates how to operate Word through Jacob. First,several schemes which frequently usesd for document automatic in Java environment are compared. Second,the principle of Jacob and Word are analyzed and discoursed. Last,through the comparison of the projects codes,the article demonstrates how to translate VBA codes to Jacob codes,the method can be applied to other MSOffice products.
出处
《大众科技》
2017年第11期19-21,39,共4页
Popular Science & Technology