我如何可以将数据导出到Excel文件 [英] How can I export data to an Excel file

查看:156
本文介绍了我如何可以将数据导出到Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在它的数据的Excel文件。我想它的某些特定行写,我用code创造了另一个Excel文件。顺便说一句我有一个列表中的这些行的索引。我该怎么做?

I have an Excel file with data in it. I want to write some specific rows of it to another Excel file that I created by code. By the way I have the indexes of these rows in a list. How can i do that?

推荐答案

MS提供的OpenXML SDK V 2.5 - 见的 https://msdn.microsoft.com/en-us/library/bb448854(v = office.15)的.aspx

MS provides the OpenXML SDK V 2.5 - see https://msdn.microsoft.com/en-us/library/bb448854(v=office.15).aspx

这可以读+写MS Office文件(包括Excel)...

This can read+write MS Office files (including Excel)...

另一种方法请参见 HTTP://www.$c$cproject.com /KB/office/OpenXML.aspx

如果您需要更多像渲染,公式等,再有像阅读Aspose和FLEXCEL不同的商业库...

IF you need more like rendering, formulas etc. then there are different commercial libraries like Aspose and Flexcel...

这篇关于我如何可以将数据导出到Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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