We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PasswordToOpen Property Not working

Hi,

I am using 
"Syncfusion.XlsIO.Portable": "15.2120.0.43",
"Syncfusion.Compression.Portable": "15.2120.0.43",

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();
workbook.SaveAs(memoryStream);
workbook.Close();
excelEngine.Dispose();


1 Reply

SS Sridhar Sukumar Syncfusion Team June 8, 2017 12:04 PM UTC

Hi Vinayak,  
 

We regret to let you know that currently we do not have support for security features in portable platform. However, we have added it to our Feature request list and it will be implemented in any of our upcoming releases.      

  

Please let us know if you need any other assistance on this. 

 
Regards, 
Sridhar. 


Loader.
Up arrow icon