You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new Excel use Microsoft Office Excel 2019, and set password, then use excelize.OpenFile("your path"), if I not provide password It throws the error 2024/04/16 20:17:46 zip: not a valid zip file. But when I set password with code f, err := excelize.OpenFile("E:/ExcelDemo/testPanic.xlsx", excelize.Options{Password: "qwerty"}), it works well. So I think it should match the error ErrWorkbookPassword is expected result.
The text was updated successfully, but these errors were encountered:
Thanks for your issue. The unencrypted workbook is a compressed file with the ZIP format, but the encrypted workbook is a CFB (OLE) file, which is different from the ZIP format. You will get that error message not only after opening an encrypted workbook without specifying the correct password but also after opening any file format that isn't supported by this library. So I think this error message is expected. Note that, you can roughly determine if a file is in a CFB format by this identifier. I'll close this issue. If you have any questions, please let me know, and you can reopen this anytime.
Create a new Excel use Microsoft Office Excel 2019, and set password, then use
excelize.OpenFile("your path")
, if I not provide password It throws the error2024/04/16 20:17:46 zip: not a valid zip file
. But when I set password with codef, err := excelize.OpenFile("E:/ExcelDemo/testPanic.xlsx", excelize.Options{Password: "qwerty"})
, it works well. So I think it should match the errorErrWorkbookPassword
is expected result.The text was updated successfully, but these errors were encountered: