I have an excel file that already protected before with spire protect function with some password. But when i wanna open it again and remove the password(the protection excel), i always have this message or error in my C# (look at the picture). I use the newest spire.xls version. Can you help me please to solve my problem. This is my syntax :
- Code: Select all
dbItem.OpenPassword = "123456789";
dbItem.LoadFromFile(@"..\..\Data\dbItem.xls");
dbItem.UnProtect();
dbItem.Protect("");
Sorry for my bad english...