Articles in this section
Category / Section

How to make a Spreadsheet as read only?

1 min read

To make Spreadsheet as read only, you need to protect both Workbook and Worksheet using Protect and ProtectSheet method respectively, like below code example.

C#

Spreadsheet.Protect(true, true,"");
Spreadsheet.ProtectSheet(Spreadsheet.ActiveSheet, "");

 

 

Sample link:

 

WPF

 

WinForms

 

UWP

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied