首页 | 本学科首页   官方微博 | 高级检索  
     

基于C#快速生成word报告
引用本文:肖斌,李超,汪敏.基于C#快速生成word报告[J].计算机系统应用,2012,21(7):232-235.
作者姓名:肖斌  李超  汪敏
作者单位:1. 西南石油大学计算机科学学院,成都610500
2. 西南石油大学电气信息工程学院,成都610500
摘    要:在进行信息系统的开发过程中,在word文档中特定位置填入从数据库中读取的数据资料来自动生成word文档报告,已成为办公自动化系统的重要组成部分。分析了传统word对象模型生成海量表格数据速度慢的弊端,结合微软Office Word2003对XML的支持特性,通过Word文档和XML文档的相互转换,提出利用StringTemplate将DataTable的数据转换成特定格式的xml字符串,实现海量表格数据的快速导出。

关 键 词:Word模板  StringTemplate  XML
收稿时间:2011/11/3 0:00:00
修稿时间:2011/12/5 0:00:00

Generating Rapidly Word Report Based on C#
XIAO Bin,LI CAO and WANG Min.Generating Rapidly Word Report Based on C#[J].Computer Systems& Applications,2012,21(7):232-235.
Authors:XIAO Bin  LI CAO and WANG Min
Affiliation:(School of Computer Science,Southwest Petroleum University,Chengdu 610500,China) 2(Schoo of Electrical Engineering and Information,Southwest Petroleum University,Chengdu 610500,China)
Abstract:When developing an information system,filling in data information at the specific position of word documents to automatically generate documents’ reports has played an important part in Office Automation System.This paper analyzes the traditional Word object model,which has disadvantages of generating mass of table data slowly.In conjunction with the good supporting characteristics of Microsoft Office Word 2003 for XML,and by way of the interconversion of Word document and XML document,this paper proposes that converting Data table into XML of specified format by utilization of StringTemplate can realize the fast derivation of mass table Data.
Keywords:Word template  StringTemplate  XML
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号