在当今信息化社会,信息检索在人们的日常工作生活中占据了越来越重要的地位。传统基于关键词的检索方法只能针对于文本类型文件,而无法对结构复杂的Office办公文档进行检索,利用自动化技术则可以很好地解决这一问题。自动化技术基于COM组件对象模型,被Office系统支持,通过该项技术可以调用Office应用程序接口完成强大的功能。介绍了一种关键词的检索方法,它基于自动化技术,实现了对Word、Excel和PowerPoint文档中关键词的检索。采用了动态加载技术,兼容性强,屏蔽了Office版本间的差异,并得到未来版本Office的支持。
Information retrieval becomes more and more important in routine life. Traditional methods for keywords retrieval can only be applied to text-mode files, and they are not fit for complicated binary-type Office documents. The automatization technique based on COM and supported by Office can solve this problem. Also it could be more powerful when combined with the Office application program interfaces. A new keywords retrieval method based on automatization technique is introduced. The method is applicableto Word, Excel and PowerPoint files. Dynamic loading technique is adopted ,which is compatible to different versions of Office and is supported by the future 'versions of Office.