如何添加Excel工作表到控制台应用程序控制台、应用程序、工作、Excel

2023-09-03 08:21:07 作者:哭得竭斯底里

任何一个可以解释添加的Excel文件在C#的过程中,什么是自己不能满足要求? 是否有必要在系统中安装的MS Excel在C#中使用的Excel

Can any one explain the process of adding excel file in C# and What are the requirements for that? Is it necessary to install MS Excel in the system for using of Excel in C#

推荐答案

您可以阅读从Excel US preadsheet的数据,而无需的有安装Excel,使用ADO.Net。这里是如何做到这一点样品。

You can read data from Excel spreadsheet without having Excel installed, using ADO.Net. Here is a sample for how to do this.

不过,你的问题是有点含糊。既然你没有安装Excel,其中这些你真正想做的事情:

However, your question is a little vague. Since you do not have Excel installed, which of these do you really want to do:

在阅读已经创建的Excel早些时候,XLS文件。 在编写将Excel中读取XLS文件后。 使用了Excel提供的计算或解决设施,而无需实际使用Excel。

您可能会得到更多有用的答案,如果你澄清。

You may get more useful answers if you clarify.