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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Enable 'Select unlocked cells' from ASP.NET in the generated Excel File.

Thread ID:

Created:

Updated:

Platform:

Replies:

108488 Apr 24,2013 07:12 AM UTC Apr 29,2013 04:58 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: XlsIO
Suganya M K
Asked On April 24, 2013 07:12 AM UTC

Hi,

Am using XLSIO Syncfusion to generate excel from C# code. How do i enable 'Select unlocked cells' for a protected worksheet. I do not want users to select locked cells



sync_property_a8ce2db4.zip

Sridhar [Syncfusion]
Replied On April 29, 2013 04:58 AM UTC

Hi Suganya,

Thank you for using Syncfusion products.

We can acheive the above reported query using the below code with XlsIO.

Code Snippet[C#]:

IWorksheet worksheet = workbook.Worksheets[0];

//TODO:Please provide the code for unlock cells

worksheet.Protect("syncfusion", ExcelSheetProtection.UnLockedCells);

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

Please go through the following online document for more details.

http://help.syncfusion.com/ug/asp.net/xlsio/default.htm#!Documents/howtoprotectcertaincellsinaspreadsheet.htm

http://help.syncfusion.com/ug/asp.net/xlsio/default.htm#!Documents/worksheetprotection.htm

Please let me know if you require any further clarifications.

Thanks,
Sridhar.S


CONFIRMATION

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.

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

;