Free Support Forum - aspose.com

What is password?

I protect the document using doc.Protect method(ProtectionType.ReadOnly). However when I unprotect the doc using MS Word, it asks for password. What is default password? I am using evaluation version of Aspose.

Hi



Thanks for your request. When you protect a document, and the document does not have a protection password, this method assigns a random password that makes it impossible to unprotect the document in Microsoft Word. See the following link for more information.
http://www.aspose.com/Products/Aspose.Words/Api/Aspose.Words.Document.Protect_overload_1.html


You should use Protect(ProtectionType Type, String Password) method to protect document with password. See the following string for more information.
http://www.aspose.com/Products/Aspose.Words/Api/Aspose.Words.Document.Protect_overload_2.html



Best regards.

<o:p></o:p>