节点文献

使用Visual Basic操纵Microsoft Word对象生成报表文档

Using Visual Basic Operating Microsoft Word To Create Report Form

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 孔令彦董蓬勃姜青香刘慧平

【Author】 Kong Lingyan 1 Dong Pengbo 2 Jiang Qingxiang 2 Liu Huiping 21 (Beijing Institute of Surveying and Mapping,Beijing100038) 2 (Department of Resources and Environment Sciences,BNU,Beijing100875)

【机构】 北京市测绘设计研究院北京师范大学资环系北京师范大学资环系 北京100038北京100875北京100875

【摘要】 在使用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.

【关键词】 Visual BasicMicrosoft Word对象模型
【Key words】 Visual BasicMicrosoft WordObject Model
【基金】 教育部高等学校骨干教师资助计划资助
  • 【文献出处】 计算机工程与应用 ,Computer Engineering and Applications , 编辑部邮箱 ,2003年36期
  • 【分类号】TP311.1
  • 【被引频次】31
  • 【下载频次】290
节点文献中: 

本文链接的文献网络图示:

本文的引文网络