6728 Invalid XfId Cells 8.4

Please reference the Attached file.

Using Cells Version 8.3.1.6 and also tested it using Cells Version 8.4.0.0

When I use the following code :

var xls = new Workbook(filePath);

I get the exception : Invalid XfId


Hi,


Thanks for providing us template file.

I have evaluated your scenario/ case a bit using your template file. Well, your file “1.xlsx” is actually corrupt. When I opened your file into MS Excel 2007, 2010 and 2013 manually, I got an error “Excel found unreadable contents…” prompted by MS Excel (you may confirm it by opening the file into MS Excel manually), it has corrupted record(s) for styles/formatting in xml part in it. So, Aspose.Cells can’t open such a file via its APIs.

Thank you.

Is there any consideration towards implementing such functionality as offered by Microsoft Office, where is recovers as much data as possible? Or is this a closed issue?

Hi,


Well, as your attached spreadsheet is corrupt that has corrupted records in it (which does not follow MS Excel standards/ specifications), so we might not support your needs. If a file is opened fine into MS Excel without any issue, we surely do support to read/write the file (if it is not already doing).

Thank you.