I am using
I'm tring to set the password for my xls file but the PasswordToOpen
property is not working.
i'm using the below code to set the password.
IWorkbook workbook = application.Workbooks.Open(ms_template, ExcelOpenType.BIFF);
workbook.PasswordToOpen = "abcd";
MemoryStream memoryStream = new MemoryStream();