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

Save XLS file in compatbility mode

Thread ID:





118898 Apr 21,2015 03:34 PM UTC Apr 23,2015 01:59 PM UTC WinForms 1
Tags: XlsIO
Asked On April 21, 2015 03:34 PM UTC

Am using version 8.404.0.10 of the library.

I want to create and save .xls file and open them with excel 2007 +. Currently if i do that then i get a warning stating the file extenion/format is different and if i click yes, the file opens.

However i can create an xls file in office 2010 and save it in compatiobility mode and open it without any warning.

Vikas Sekar [Syncfusion]
Replied On April 23, 2015 01:59 PM UTC


The warning message you have shared us is due to invalid version. Please follow the below code snippets to save the file in respective version.

Code Snippet:

//To Save file in .xls Format

workbook.Version = ExcelVersion.Excel97to2003;


//To Save file in .xlsx Format

workbook.Version = ExcelVersion.Excel2007;


Please lets us know if you need any clarification.




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