Why close xml does not support .xls formated excel file?

Shriram Sapate picture Shriram Sapate · Dec 18, 2013 · Viewed 11.3k times · Source

During accessing ".xls" formated excel file using "closed xml" dll following exception is occurred

Exception : Excel may contain corrupted data...

Answer

Brad Bruce picture Brad Bruce · Dec 18, 2013

As stated by others, ClosedXML only works with the newer format.

NPOI works with older versions as well. If you use NPOI, make sure that you download the beta from their site. As of Dec 18, 2013 the NuGet download ONLY supports XLS. The beta supports XLS and XLSX