是否有用于 MS Excel 操作(读/写)的 Dot NET (C#) 库?

发布于 2024-10-02 00:03:25 字数 1539 浏览 6 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

思慕 2024-10-09 00:03:25

它不是开源的,但我通常使用 Open XML SDK 2.0 由 Microsoft 执行此类工作。

It's not open source, but I usually find myself using the Open XML SDK 2.0 from Microsoft to perform this type of work.

离鸿 2024-10-09 00:03:25

作为该组件的替代方案,您可以将电子表格作为“经典”数据源(如 Sql Server)进行查询。创建一个指向文件路径的连接字符串并使用 Microsoft.jet.oledb.4.0 提供程序(它在 x64 操作系统上不可用,在这种情况下,您将必须使用第三方组件来建立连接)。完成此操作后,您可以在 .xls 上运行 sql 语句。

在这里您可以找到一些有用的信息:hhttp://www.davidhayden.com/blog/dave/archive/2006/05/26/2973.aspx

as an alternative to the component you can query a spreadsheet as a "classic" datasource like Sql Server. Create a connection string pointing to the path of your file and use the Microsoft.jet.oledb.4.0 provider (it is not available on x64 os, in that case you will have to use third party component to establish the connection). Once this is done you can run sql statements over your .xls .

Here you can find some useful infos : hhttp://www.davidhayden.com/blog/dave/archive/2006/05/26/2973.aspx

凹づ凸ル 2024-10-09 00:03:25

Aspose.Cells 是一个处理 Excel 文件的好库。

但是,它不是开源的。

我还没有找到一个好的开源库。

Aspose.Cells is a good library for handling Excel files.

However, it is not open source.

I have yet to find a good library that is open source for this.

べ映画 2024-10-09 00:03:25

看看 EPPlus:Codeplex
请注意,它仅适用于 .xlsx,这是一个问题吗?或者它可以工作吗?

Take a look at EPPlus: Codeplex.
Note that it only works with .xlsx, is that a problem, or could it work?

メ斷腸人バ 2024-10-09 00:03:25

我正在使用此代码读取 excel 文件(.xls 二进制) http://www.codeproject .com/KB/office/Excel_DataReader.aspx

I am using this code for reading excel file(.xls binary) http://www.codeproject.com/KB/office/Excel_DataReader.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文