无需 Excel 和 OLEDB 即可读取 .xlsx

发布于 2024-10-01 07:14:15 字数 128 浏览 0 评论 0原文

是否有机会在 C# 中读取 .xlsx 文件,而无需在客户端上安装 Excel,并且没有可用的 OLEDB 连接?

该应用程序是一个用 VS2005 C# .NET Framework 2.0 编写的 Winforms 项目。

Is there any chance to read .xlsx files in C# without having Excel installed on the client, and with no OLEDB connection available?

The application is a Winforms project written in VS2005 C# .NET Framework 2.0.

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

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

发布评论

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

评论(8

独享拥抱 2024-10-08 07:14:15

这个怎么样:

EPPlus - 在服务器上创建高级 Excel 2007 电子表格

EPPlus 是一个 .net 库,它读取并使用Open Office Xml 格式(xlsx) 写入Excel 2007 文件。
EPPlus 支持范围、单元格样式、图表、图片、形状、命名范围、自动过滤器和许多其他内容。

How about this one here:

EPPlus-Create advanced Excel 2007 spreadsheets on the server

EPPlus is a .net library that reads and writes Excel 2007 files using the Open Office Xml format (xlsx).
EPPlus supports ranges, cell styling, charts, pictures, shapes, named ranges, autofilters and a lot of other stuff.

梦情居士 2024-10-08 07:14:15

Koogra 可以读取 .xlsx 文件。

Koogra can read .xlsx files.

冧九 2024-10-08 07:14:15

请查看 excellibrary。目前它仅支持 xls,但计划将来支持 xlsx。

Have a look at excellibrary. For now it supports only xls, but xlsx support is planned for the future.

醉生梦死 2024-10-08 07:14:15

这个问题看起来与这个问题类似,不是吗?

您检查过 NPOI 吗?

最好的

This question looks to be similar to this one no?

Have you checked NPOI ?

Best

情徒 2024-10-08 07:14:15

我们在项目中成功使用了 NPOI

We use NPOI successfully in our projects.

鹿童谣 2024-10-08 07:14:15

可能有一些第三方组件可以帮助您。

这是一个

这是另一个

There might be some 3rd party components that can help you.

Here's one

Here's another

╰つ倒转 2024-10-08 07:14:15

NPOI的最新版本同时支持xsl和xslx。 下载

NPOI 2.0
并使用 xlsx 的 NPOI.XSSF.UserModel.XSSFWorkbook 。

NPOI's latest version support both xsl and xslx. Download it from

NPOI 2.0
and use NPOI.XSSF.UserModel.XSSFWorkbook fro xlsx.

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