Dear Aspose Support,
please use following code to repoduce this issue:
Aspose.Cells.Workbook wb = new Workbook();
wb.Protect(ProtectionType.Windows, “”);
wb.Save(“C:\test1.xlsx”);
The result:
Attachment: NoWindowProtection.PNG
It seems that ProtectionType.Windows has no impact on the workbook.
If I use an excel macro on a new file like following:
Sub test()
ActiveWorkbook.Protect Windows:=True
End Sub
The result (as expected):
Attachement: WindowProtection.PNG
Best regards