read .xlsx without Excel and OLEDB

2020-06-14 09:05发布

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.

8条回答
【Aperson】
2楼-- · 2020-06-14 09:29

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

查看更多
干净又极端
3楼-- · 2020-06-14 09:32

This question looks to be similar to this one no?

Have you checked NPOI ?

Best

查看更多
啃猪蹄的小仙女
4楼-- · 2020-06-14 09:33

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.

查看更多
ゆ 、 Hurt°
5楼-- · 2020-06-14 09:33

Koogra can read .xlsx files.

查看更多
欢心
6楼-- · 2020-06-14 09:39

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

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

查看更多
Luminary・发光体
7楼-- · 2020-06-14 09:45

We use NPOI successfully in our projects.

查看更多
登录 后发表回答