I am creating workbook using aspose.cells and trying to set the password protection on certain worksheets, but somehow it is not getting set.
Below is my code:
Workbook _workBook = new Workbook(memoryStream);
Worksheet worksheet = _workBook.Worksheets["Test"];
worksheet.Protect(ProtectionType.All, "Test123", null);
Any suggestions, what’s missing here?