-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load password protected xls file got "not found" exception #297
Comments
With expected behaviour being:
Is this against master (/ a release package)? From the tests I gather dev is supposed to be able to open encrypted documents, but I'm not sure of the state of this feature in master Also, it would be useful to know which program generated the document (MS Excel, Libre Office, ...) |
@Crzyrndm Here is my code:
|
@Crzyrndm |
I recompile from dev branch, but the execption still there. |
I created a xlsx file, It worked! Didn't xlnt support xls file? |
Apologies, I missed that this was xlx. xlsx is the only supported format currently. xls support is wishlisted but there is no current implementation for xlnt that I'm aware of :( A more helpful exception should be a priority here. "File not found" doesn't help with debugging this issue |
test.xls is a password protected file, if I used wb.load("test.xls"), I got an exception:
$ ./openxls
terminate called after throwing an instance of 'xlnt::exception'
what(): xlnt::exception : encrypted xlsx, password required
Aborted
If I used wb.load("test.xls", "password"), I got an exception:
$ ./openxls
terminate called after throwing an instance of 'xlnt::exception'
what(): xlnt::exception : not found
Aborted
Here is the error stack:
The text was updated successfully, but these errors were encountered: