Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I need to export a xls file. After exporting the file, the existing data should be protected (not editable) but I can add new data in a new row to that xls file.
I have used
worksheet sheet=new worksheet();
sheet.protected=true;

This makes the whole xls sheet protected (not editable) but I can not add any new row with new data.

Can anybody please help me in this regards.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 4-Jul-12 15:37pm    
Just a note: proper term for "not editable" is "read-only", but just "not editable" is the most accurate because it says for who it is not editable. "Protected" is used to denote very different concepts.
--SA

1 solution

I googled your question and found AllowInsertingRows[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900