Used version: Aspose.Words 14.9.0.
When I try to open regular (not password-protected) DOCX file and specify password, then
Aspose.Words.FileCorruptedException is thrown with the message: The document appears to be corrupted and cannot be loaded. Think it is better to open file without error or at least throw IncorrectPasswordException.
try
{
new Aspose.Words.Document(@"docx.docx",c new w.LoadOptions()
{
Password = "test"
});
}
catch (FileCorruptedException){ }
Thanks,
Alex Shloma
Initially I suggested 2 varialnts:
- to open file without error
- at least throw IncorrectPasswordException.
Just tested with DOC file.
Aspose.Words opened it without any errors - so the same behavior is expected from OOXML formats.
Hi Alex,
Thanks for your inquiry. We have logged your comment against your issue. We will inform you as soon as this issue is resolved. We apologize for any inconvenience.
Best regards,
Hi Alex,
Thanks for your inquiry. Unfortunately, your issue is not resolved yet. We have asked the ETA of this issue from our product team and will update you as soon as any estimates are available. We apologize for your inconvenience.
Best regards,
Hi Alex,
Thanks for being patient. Regarding WORDSNET-10923, our development team has planned to include the fix to this issue in 15.3.0 - Mar 2015 release of Aspose.Words. If everything goes by plan, we are very hopeful to include the fix to your issue in Aspose.Words' March 2015 release. We will inform you via this thread as soon as a release containing the fix to your issue is published.
Best regards,
The issues you have found earlier (filed as WORDSNET-10923) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.