节点文献
使用Visual Basic操纵Microsoft Word对象生成报表文档
Using Visual Basic Operating Microsoft Word To Create Report Form
【摘要】 在使用VisualBasic进行管理信息系统开发中,经常需要操纵MicrosoftWord在文档中特定位置填入从数据库中读取的数据资料来生成所需报表文档,以便于管理或打印输出。文章介绍了MicrosoftWord对象模型,以及在VisuaBasic应用程序中如何利用OLE引用MicrosoftWord对象。并且通过实例说明了在VisualBasic中利用MicrosoftWord对象的书签(Bookmark)和查找替换(Find、Replacement)两种方式向模板文档中填入数据实现报表文档的生成和保存的方法。
【Abstract】 When developing the manage information systems with Visual Basic,We usually need to place data from database at the specified place through operating the Microsoft Word to produce the report-form document needed,which facilitating managing and printing files.This paper introduces the Microsoft Word object model,and how to call Microsoft Word object model by OLE in Visual Basic program.Here gives an example to show how to write to match-board by Bookmark and Replacement in Microsoft Word object model to make a new report form and save it.
- 【文献出处】 计算机工程与应用 ,Computer Engineering and Applications , 编辑部邮箱 ,2003年36期
- 【分类号】TP311.1
- 【被引频次】31
- 【下载频次】290