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

Commented Issue: Error reading binary (.xls) file [11538]

$
0
0
__Unit test following fix:__

Trying to read a .xls file and I get this --> Error: Neither stream 'Workbook' nor 'Book' was found in file.

Stepping though the code while it was reading the file confirms the error message is technically right. There is a 'WORKBOOK' entry though.

At the bottom of the XlsRootDirectory.cs file, is a method FindEntry that does the finding. I just changed it to be case insensitive and it read the file ok.

From this:
if
(e.EntryName == EntryName)

To this:
if
(string.Compare(e.EntryName,
EntryName, true)
== 0)
Comments: ** Comment from web user: noodel1988 **

Could you put this fix in a new package on NuGet?

Release 17 januari 2013
Bugfix is done after this point.

Except for this bug, nice work!


Viewing all articles
Browse latest Browse all 448

Trending Articles



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