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

How to create excel file in read-only mode

Thread ID:





98441 Feb 28,2011 04:03 PM UTC Mar 1,2011 07:34 AM UTC ASP.NET Web Forms (Classic) 1
Tags: XlsIO
Ram Thatikonda
Asked On February 28, 2011 04:03 PM UTC

Hi Syncfusion,

What settings should be overridden for the excel file to save in read-only mode?


Sridhar [Syncfusion]
Replied On March 1, 2011 07:34 AM UTC

Hi Ram,

Thank you for using syncfusion products.

We can create an excel file in read - only mode. i have given below the code.

Iworkbook workbook=application.workbooks.OpenReadOnly(filename);

and it does not override any setting of an worksheet.

To save an readonly i have attached here with the sample, where we have to change the FileAttributes and write it to the file, then only we can save it.

Please try the sample and let us know if this helps you.

Pleae let us know if you require any further clarifications.



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