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.
Unfortunately, activation email could not send to your email. Please try again.

PasswordToOpen Property Not working

Thread ID:

Created:

Updated:

Platform:

Replies:

130852 Jun 7,2017 03:31 AM Jun 8,2017 08:04 AM ASP.NET Core 1
loading
Tags: XlsIO
Vinayak
Asked On June 7, 2017 03:31 AM

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();


Sridhar Sukumar [Syncfusion]
Replied On June 8, 2017 08:04 AM

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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;