I'm using excelLibrary to programatically create excel files but I get a file format error when I try to open the generated files in Microsoft Office Excel.
I've seen this has been reported but there's still no answer about it.
I use Office 2010 and I'm able to open any other .xls (97-2003 file format) but the ones generated with excelLibrary. I've also tried Open Office and still can't open the generated file. I haven't tried to open them in Office 97-2003.
Just try the sample code to reproduce the error.
Have anybody found how to use the library and not run into this problem?
Since the sheet name is not given properly, it was throwing that error.
Once we give the sheet a name, it will work properly.
Found a solution :
Reference : here
Unfortunately excel file exported with excelLibrary are not compatible with office 2010 Excel, this is an already reported issue but seems that the library development is no longer active .
I've switched to NPOI .