简体   繁体   English

Visual Studio 2013-没有创建Excel文件的参考。

[英]Visual studio 2013 - not have reference for creating excel file.

I want to create Excel file. 我要创建Excel文件。 I am using visual studio 2013. All code example suggest to use Microsoft.Office.Interop.Excel \\Microsoft Excel XX.X Object Library. 我正在使用Visual Studio2013。所有代码示例均建议使用Microsoft.Office.Interop.Excel \\ Microsoft Excel XX.X对象库。 But I dont see any dll like those in COM tab ( add reference -> COM tab). 但是我没有在COM选项卡(添加参考-> COM选项卡)中看到任何类似的dll。

What is the reason? 是什么原因? How can I add the reference? 如何添加参考? is there another way to create .XLS and write to it? 还有另一种方法来创建.XLS并对其进行写入吗?

Thank you in advance 先感谢您

You should use open xml sdk , to manage the Excel file as XML document. 您应该使用open xml sdk,将Excel文件作为XML文档进行管理。 see here . 这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM