简体   繁体   English

在没有Excel和OLEDB的情况下读取.xlsx

[英]read .xlsx without Excel and OLEDB

Is there any chance to read .xlsx files in C# without having Excel installed on the client, and with no OLEDB connection available? 有没有机会在C#中读取.xlsx文件而不在客户端上安装Excel,并且没有OLEDB连接可用?

The application is a Winforms project written in VS2005 C# .NET Framework 2.0. 该应用程序是一个用VS2005 C#.NET Framework 2.0编写的Winforms项目。

How about this one here: 这个怎么样:

EPPlus-Create advanced Excel 2007 spreadsheets on the server EPPlus - 在服务器上创建高级Excel 2007电子表格

EPPlus is a .net library that reads and writes Excel 2007 files using the Open Office Xml format ( xlsx ). EPPlus是一个.net库,使用Open Office Xml格式( xlsx )读取和写入Excel 2007文件。 EPPlus supports ranges, cell styling, charts, pictures, shapes, named ranges, autofilters and a lot of other stuff. EPPlus支持范围,单元格样式,图表,图片,形状,命名范围,自动过滤器和许多其他东西。

我决定在CodePlex上使用Excel Data Reader

Koogra可以读取.xlsx文件。

NPOI's latest version support both xsl and xslx. NPOI的最新版本支持xsl和xslx。 Download it from 从中下载

NPOI 2.0 and use NPOI.XSSF.UserModel.XSSFWorkbook fro xlsx. NPOI 2.0并使用来自xlsx的NPOI.XSSF.UserModel.XSSFWorkbook。

Have a look at excellibrary . 看看excellibrary For now it supports only xls, but xlsx support is planned for the future. 目前它仅支持xls,但计划在未来支持xlsx。

This question looks to be similar to this one no? 这个问题看起来与类似吗?

Have you checked NPOI ? 你检查过NPOI吗?

Best 最好

我们在项目中成功使用NPOI

There might be some 3rd party components that can help you. 可能有一些第三方组件可以帮助您。

Here's one 这是一个

Here's another 这是另一个

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

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