Computer Engineering and Applications ›› 2008, Vol. 44 ›› Issue (9): 104-106.

• 研发、设计、测试 • Previous Articles     Next Articles

Development of Word report generation function based on C#.net

YE Ming,ZHANG Zheng   

  1. School of Economic Management,Beihang University,Beijing 100083,China
  • Received:2007-08-07 Revised:2007-10-14 Online:2008-03-21 Published:2008-03-21
  • Contact: YE Ming

基于C#.NET的Word报告生成功能开发

叶 明,张 诤   

  1. 北京航空航天大学 经济管理学院,北京 100083
  • 通讯作者: 叶 明

Abstract: Automatic report generation function is an important component of office automation system.In this paper,Using C#.net calling COM to control Word,the text and tables in the document are inserted into Word report separately.Meanwhile,brings up the cursor positioning methods to control the document format and location,and the content is inserted into the corresponding position.

Key words: C#.net, Word document, report generation

摘要: 自动生成Word文档报告功能是办公自动化系统中的重要组成部分。采用调用COM组件实现C#.net对Word的控制的技术,将文档中的文字部分和表格部分分别插入到Word报告中,同时提出了使用文档光标跟随定位的方法来控制文档的起始位置和格式,并在相应的位置上插入对应的内容。

关键词: C#.net, Word文档, 报告生成