We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Save As SpreadsheetML producing incorrect XML

Hi

I have an XLS file that I would like to save as SpreadsheetML. After the save, when I try to open up in OWC or Excel, I get the below error

XML ERROR in Worksheet Setting
REASON: Bad Value
FILE: X:\PUBLIC\Harry\aspose issues\relational.xml
GROUP: Worksheet
TAG: Table
ATTRIB: ExpandedRowCount
VALUE: 8

Below is the code that produces the Xml file

var workbook = new Workbook();
workbook.Open(“relational.xls”);
workbook.Save(“relational.xml”);

I don’t seem to have this issue with other Xls files that I need to convert to Xml.

Can this be fixed?

Thanks

Harry

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Please try the attached latest version of Aspose.Cells. I checked your template file with your sample code and it works fine.

Thank You & Best Regards,

That was fast.

The fix works.

Thanks