NPOI icon indicating copy to clipboard operation
NPOI copied to clipboard

Found EOFRecord before WindowTwoRecord was encountered

Open mv27389 opened this issue 5 years ago • 0 comments

I have a .xls sheet with multiple sheets. I'm using following code to read the excel using NPOI package: WorkbookFactory.Create(fs) where fs = new FileStream(feedFilePath, FileMode.Open, FileAccess.Read)

WorkbookFactory.Create(fs) is throwing "Found EOFRecord before WindowTwoRecord was encountered"

If I save the excel file and re-run the same code, it works. Can anyone please help how can I fix it?

mv27389 avatar Oct 05 '19 16:10 mv27389