We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Saving in 2007 .xlsx format

Thread ID:





68689 Sep 27,2007 11:40 AM UTC Oct 1,2007 10:52 AM UTC WinForms 1
Tags: XlsIO
Robert Pickering-LEFT COMPANY
Asked On September 27, 2007 11:40 AM UTC

I can't work out how to save a work book as the 2007 xml format. I've tried the following code:

book.SaveAsXml("book.xlsx", ExcelXmlSaveType.MSExcel)

When I try and open the resulting document in excel 2007 I get a message saying "Excel can't open the file 'book.xlsx' because the format or extension is not valid".

When I look at the document in a text editor I see that it is an xml document, but I believe that an open office xml document is actually a zip containing a collection of xml documents.

Do I have to call another method to get it to export correctly? I cannot see any likely looking candidates

Administrator [Syncfusion]
Replied On October 1, 2007 10:52 AM UTC

Hi Robert,

Thank you for your interest in Syncfusion products.

To save an .xlsx file in xml format, select the version to 'Excel2007'.

To open that xml file in xls format, select the version to 'Excel97to2003'.

Please refer the attached sample and let me know if you still face any issues.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon