I'm getting following exception while locking some cells through owc.(excel through Owc11.0)
Following is the code.
xl.ActiveSheet.Cells.Locked = true;
xl.ActiveSheet.Protect("password");
Error 1 Property, indexer, or event 'Locked' is not supported by the language; try directly calling accessor methods 'Microsoft.Office.Interop.Owc11._Range.get_Locked()' or 'Microsoft.Office.Interop.Owc11._Range.set_Locked(bool)' D:\TestOWC\Default.aspx.cs 60 34 D:\TestOWC\
Mark this as answer, if it is.....
With regards
Nishithraj Narayanan