###
DOI:
计算机系统应用英文版:2012,21(7):232-235
本文二维码信息
码上扫一扫!
基于C#快速生成word报告
(1.西南石油大学 计算机科学学院,成都 610500;2.西南石油大学 电气信息工程学院,成都610500)
Generating Rapidly Word Report Based on C#
(1.School of Computer Science, Southwest Petroleum University, Chengdu 610500, China;2.Schoo of Electrical Engineering and Information, Southwest Petroleum University, Chengdu 610500, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 2860次   下载 6202
Received:November 03, 2011    Revised:December 05, 2011
中文摘要: 在进行信息系统的开发过程中,在word文档中特定位置填入从数据库中读取的数据资料来自动生成word文档报告,已成为办公自动化系统的重要组成部分。分析了传统word对象模型生成海量表格数据速度慢的弊端,结合微软Office Word2003对XML的支持特性,通过Word 文档和XML文档的相互转换,提出利用StringTemplate将DataTable的数据转换成特定格式的xml字符串,实现海量表格数据的快速导出。
中文关键词: ord模板  StringTemplate  XML
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
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
肖斌,李超,汪敏.基于C#快速生成word报告.计算机系统应用,2012,21(7):232-235
XIAO Bin,LI CAO,WANG Min.Generating Rapidly Word Report Based on C#.COMPUTER SYSTEMS APPLICATIONS,2012,21(7):232-235