使用OpenXML C#从DataSet创建Excel文件 [英] Creating Excel Files from DataSet using OpenXML C#

查看:95
本文介绍了使用OpenXML C#从DataSet创建Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试创建一个导出按钮,将我的数据表导出到包含一个数据表数据的单个Excel工作表中。 />


而且我不想使用Microsoft.Office.Interop.Excel。

请帮我解决这个问题。

提前谢谢。

Hi All,

I am trying to create a export button which will export my datatables into a single excel sheet containing one datatable data into one sheet.

And i don''t want to use Microsoft.Office.Interop.Excel.
Please help me regarding this.
Thanks in advance.

推荐答案

看看这个代码项目article

使用Open XML创建基本的Excel工作簿 [ ^ ]



或这个博客

http://blogs.msdn.com/b/chrisquon/archive/2009/07/22 /creating-an-excel-spreadsheet-from-scratch-using-openxml.aspx [ ^ ]
Have a look at this code project article
Creating basic Excel workbook with Open XML[^]

or this blog
http://blogs.msdn.com/b/chrisquon/archive/2009/07/22/creating-an-excel-spreadsheet-from-scratch-using-openxml.aspx[^]


这篇关于使用OpenXML C#从DataSet创建Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆