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

基于C#.NET的动态Word文档生成及数据填充研究
引用本文:罗许练.基于C#.NET的动态Word文档生成及数据填充研究[J].惠州大学学报,2009(6):74-77.
作者姓名:罗许练
作者单位:惠州学院,广东惠州516007
基金项目:基金项目:惠州学院2009年科研项目(C209·0210)
摘    要:在进行管理信息系统开发时往往要进行报表的制作,但报表一般不能形成单独的文件进行存储,更不能进行必要的修改。若将报表制作成Word文档的形式就能妥当解决该问题。利用C#调用Word的COM控件生成并控制Word文档的操作,并在C群.NET平台上利用ADO.NET连接Access数据库,用SQL语句对数据进行操作,进而生成我们所需要的word报表文件。利用c#控制Word文档的操作并将SQL语句查询和统计出来结果写入Word文档,能够很好的制成信息系统所需要的报表,便于资料的存储及必要的修改。

关 键 词:C#.NET  Word  Access  SQL

Based on C#. NET Generates a Dynamic Word Document and Filled Data Research
LUO Xu-lian.Based on C#. NET Generates a Dynamic Word Document and Filled Data Research[J].Journal of Huizhou University,2009(6):74-77.
Authors:LUO Xu-lian
Institution:LUO Xu-lian ( Huizhou University, Huizhou 516007, Guangdong China)
Abstract:When carrying out management information system development often have to report the production, but the statements generally can not form a separate file store,let alone make the necessary changes. Ruoqian'g statements produced in the form of Word docu- ments can properly solve the issue. The use of C# calling Word's COM controls generate and control the operation of Word documents, and in C#. NET platform, using ADO. NET to connect Access database,using SQL statements to operate on the data,thereby generating what we need Word report file. Word document using C# controls the operation and will be out of SQL statement to query and statistical results into Word documents lean be made of good information systems needed to report, to facilitate data storage and the necessary changes.
Keywords:C#  NET  Word  Access  SQL
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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