Read only or Lock the particular cells or rows using open xml sdk
问题 I am using open xml sdk to export excel. I get the excel file and copying that file to another place and then I'm inserting new rows with the data. I should make that rows as read only (or I've to lock) using open xml sdk.. How to do that ? 回答1: I've referred the following link Excel File Password Protection with Open XML SDK. Here I gave you full code to open the file from directory and insert cells. Here I've inserted only one cell. You can insert as you want. Here I've inserted locked