NPOI
NPOI copied to clipboard
Found EOFRecord before WindowTwoRecord was encountered
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?