We are using Aspose.Words.dll (version 10.6.0.0) to open word documents from Microsoft .NET application.
These documents are password protected. Some documents are opening without any error but some documents are throwing following exception.
"‘Documents appears to be corrupted and cannot be loaded’"
After searching on internet , we found some thread regarding to this exception and came to know that latest Aspose.Words.dll has fix for this issue.
But when we tried to use latest Aspose.Words.dll (version 22.214.171.124) we are getting following error
"The document is encrypted using the RC4 CryptoAPI Encryption and this not currently supported."
Here I am sending code snippet from our application
LoadOptions documentLoadOptions = null; ; Aspose.Words.Document mAspose = null; documentLoadOptions = new LoadOptions(LoadFormat.Auto, "1234", string.Empty); mAspose = new Aspose.Words.Document(filePath, documentLoadOptions); mAspose.Save(resultFilePath, SaveFormat.Doc);
please refer attached sample report we are trying to open this report by using above code.
This sample report is password protected , password details are as follows
Read/Open Password is 1234.
Write Password is abcd.