I asked a similar question recently but thanks to the people that commented on that question I learned that the problem is more with excel than NPOI, so I deleted that question and rephrase it here.
Anyway, my main problem is stated in my previous question. I need to read a downloaded .xls-file using NPOI. The problem is that my file I downloaded is most likely a HTML-table that has been imported to an excel document. Either that, or the excel-document is really an .xlsx (MIME?)that has been zipped/unzipped wrongly.
When I open the document in excel i get a warning saying that the file might be corrupt. I press "ok" and everything works fine. So apparently the file is readable by excel, but not NPOI.
Does anyone know what I can do about this? Or is it a lost cause?