创建没有互操作引用DLL的excel文件 [英] create excel file without interop reference DLL
本文介绍了创建没有互操作引用DLL的excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨专家我想创建excel文件而不使用excel互操作服务(dll)。
有没有办法在没有互操作引用DLL的情况下创建excel文件?我想只创建excel文件而不是csv。
先进的Thanx。
Hi Experts i want to create excel file without using excel interop services (dll).
is there any way to create excel file without interop reference DLL? i want to create only excel file not csv.
Thanx in advanced.
推荐答案
是的,请求非常合理。您可以执行以下操作:
而不是需要安装Office的Office互操作程序集,您可以使用Open XML SDK:
http://www.microsoft.com/en-us/download/details.aspx? id = 30425 [ ^ ]。
这样,您可以支持新的基于XML的Office格式(例如.DOCX,.XLSX),ECMA-376标准:
http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats [ ^ ],
http://en.wikipedia.org/wiki/Office_Open_XML [ ^ ]。
这是另一种选择: http://npoi.codeplex.com/ [ ^ ]。
-SA
Yes, the request is quite reasonable. Here is what you can do:
Instead of Office interop assemblies which require Office to be installed, you can use Open XML SDK:
http://www.microsoft.com/en-us/download/details.aspx?id=30425[^].
This way, you can support new XML-based Office formats (such as .DOCX, .XLSX), ECMA-376 standard:
http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats[^],
http://en.wikipedia.org/wiki/Office_Open_XML[^].
This is another option: http://npoi.codeplex.com/[^].
—SA
参见使用MS Excel(xls / xlsx)使用MDAC和Oledb [ ^ ]。
这篇关于创建没有互操作引用DLL的excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文