Hi Team ,
My requirement would be to disable the Copy Option in an Excel sheet Using Aspose Cells for .net . I have tried the following Options using Code
Worksheet sheet = wBook.Worksheets[wBook.Worksheets.ActiveSheetIndex];
Style style;
StyleFlag flag = new StyleFlag();
for (int i = 0; i < 255; i++)
{
style = sheet.Cells.Columns[i].Style;
style.IsLocked=true;
flag.Locked=true;
// Get style of the column
sheet.Cells.Columns[(byte)i].ApplyStyle(style,flag);
}
Aspose.Cells.Protection protection = sheet.Protection;
sheet.Protect(ProtectionType.All);
wBook.Save(@"C:\Test.xls");
The above Piece of Code Only disables editing Option But I can Copy the contents from it ,Please let me Know how can I disable Copying using Aspose Methods?