Hi I am trying to process excel file with following code but getting error like
This structured storage version is not supported.
Workbook excelDocument1 = new Workbook();
FileInfo fileInfo = new FileInfo(file.FilePath);
byte[] bytes = File.ReadAllBytes(file.FilePath);
MemoryStream stream = new MemoryStream(bytes);
stream.Position = 0;
//excelDocument1.Open(stream, FileFormatType.Excel97To2003);
Workbook workbook = new Workbook(stream);
@smaddineni,
I tested your scenario/case with a sample XLS file and it works fine. Here is my sample code that works fine and I do not get any exception:
e.g.
Sample code:
byte[] bytes = File.ReadAllBytes("g:\\test2\\test.xls");
MemoryStream stream = new MemoryStream(bytes);
stream.Position = 0;
Workbook workbook = new Workbook(stream);
Console.WriteLine("ok");
I am using latest version, i.e., Aspose.Cells for .NET v23.11. Which version of the APIs you are using? Could you please zip and attach your Excel file, we will check it soon.
@smaddineni
We have fixed a same private issue Unable to open an xls file of 2003 version - #14 and log it with id CELLSNET-54646.
And this issue has been fixed , we will release it in the next version 23.12
The issues you have found earlier (filed as CELLSNET-54646) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi