I have the following problem :
when I try to load an XML based Excel file (.xlsx) and even if I set the LoadOption
to XlsxDefault
the program throws the error Reading error: file is not a valid OLE2 Compound File."
.
it don't throw any exceptions if I try to load the .XLS-exported version of the workbook, seems like ExcelFile.Load
method cannot open xml based excel files.
I Tried to replace the path of my spreadsheet with one .xlsx file downloaded on The Gembox example page but it didn't change anything. currently my only way to open a Excel Workbook is to load a .xls version of the file.
EDIT : I can open the .xlsx files with excel without any problems
EDIT2: I Wasn't able to reproduce the problem in another solution so I Think that another part of my soft is responsible of my problem