Hello,
I'm using the protect / unprotect methods on Word.Document
When a protected (by aspose) document is loaded in word, in some situation I need to unprotect it.
When I use Word Object model, I can call:
this.Document.Protect(Word.WdProtectionType.wdAllowOnlyReading);
Then I can call:
this.Document.Unprotect();
I can do the same with aspose:
this.Document.Protect(Aspose.Words.ProtectionType.ReadOnly);
But when using Word Object model to unprotect, an exception is thrown :
System.Runtime.InteropServices.COMException (0x800A156D): The password is incorrect.
at Microsoft.Office.Interop.Word.DocumentClass.Unprotect(Object& Password)
at WordLink.AddinModule.unlock(Boolean unlock)
I need to remove the read-only protection juste to change some link, how could I do that ?
I'm using Aspose.Word v13.4.0.0
Thank you