Hi,
Has Aspose.Cells for .NET any way to uniquely identify the presence of a password for read the file?
I found two ways, but they have ambiguous results.
1. ExceptionType.InvalidData (CellsException e.Code) - is it only for password?
2. Error message contains ‘password’ - can it be changed (for example, by localization)?
Best regards,
Alex Shloma
Hi Alex,
Hi Babar Raza,
Thank you for so quick response, but I meant a password to open (read) the workbook (exception in Workbook constructor).
Thanks,
Alex Shloma
Hi Alex,
Please see attached file (password: qwerty).
But it is common Excel file. What I want to ask you is how can I determine that Workbook is password protected if I get only CellException with text “Please provide password for the Workbook file.”. For example Aspose.Words has IncorrectPasswordException and I can uniquely identify this. In Aspose.Cell I get only CellException in the similar situation.
Thanks,
Alex Shloma
Hi Alex,
Hi Babar Raza,
For me will be better if you will send me sample in zip.
Thanks,
Alex Shloma
Hi,
We can change the CellsException.Code as ExceptionType.IncorrectPassword.
Let us know if it fits your need.
Hi Shakeel Faiz,
Yes, it will be great.
Many thanks,
Alex Shloma
Hi Babar Raza,
All works fine now. I so appreciate your help.
Thank you guys!
Best regards,
Alex Shloma
The issues you have found earlier (filed as 28590) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.