read .xlsx without Excel and OLEDB

谁说胖子不能爱 提交于 2019-12-04 19:32:38

问题


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.


回答1:


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.




回答2:


I decided to use the the Excel Data Reader on CodePlex.




回答3:


Koogra can read .xlsx files.




回答4:


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




回答5:


This question looks to be similar to this one no?

Have you checked NPOI ?

Best




回答6:


We use NPOI successfully in our projects.




回答7:


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

Here's one

Here's another




回答8:


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

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



来源:https://stackoverflow.com/questions/4106062/read-xlsx-without-excel-and-oledb

工具导航Map