we try to remove a password protection from a workbook. Protected123.zip (10,3 KB)
Code:
using (var protectedWorkbook = new Workbook(InputFile, new LoadOptions(){Password = password}))
{
protectedWorkbook.Unprotect(password);
protectedWorkbook.Save(unlockedWorkbook);
}
The output Workbook unlockedWorkbook is still password protected!
Please set the WorkbookSettings.Password property to an empty string, this should remove the encryption set on loading the spreadsheet. Please try the line instead: protectedWorkbook.Settings.Password = "";
Good to know that your issue is resolved by using the suggested line of code. Feel free to write us back if you have further queries or comments, we will be happy to assist you soon.