Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all articles
Browse latest Browse all 448

Commented Unassigned: Example of excel file returning no datasets - OpenXmlReader [12455]

$
0
0
FileStream stream = File.Open(excelFilePath, FileMode.Open, FileAccess.Read);
excelReader = Excel.ExcelReaderFactory.CreateOpenXmlReader(stream);
DataSet result = excelReader.AsDataSet();

result is null for the attached file.
Comments: ** Comment from web user: Ian1971 **

This particular file fails in ICSharpCode.SharpZipLib with this error
"Size mismatch between central header(587) and local header(0)" so I'm not sure whether it is a problem with the file itself or SharpZipLib. I don't have time to do any further investigation right now, but if you wanted to raise it with developers in the zip library that would be much appreciated.


Viewing all articles
Browse latest Browse all 448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>