We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose cell crash while open encrypted xlsx file

Hello Aspose cell support team,

I use Aspose cell C++ to try to open an encrypted xlsx file. The sample file is Book1.zip

I try to open encrypted file using the below code:

intrusive_ptr loadOpt = Factory::CreateILoadOptions(LoadFormat::LoadFormat_Xlsx);
loadOpt->SetPassword(new String(“123”));
intrusive_ptr wb = Factory::CreateIWorkbook(new String(“Book1.xlsx”), loadOpt);

But it crash during execute the last line. I tried to load the file as Excel2003 format, it load successfully but the file content is empty after save.

Could you please help me on this case?


We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSCPP-197 - Application crashes while opening encrypted XLSX file


For now Aspose.Cells for C++ does not support Encrypted files. That is why the problem occurs with your template file.


Do Aspose.Cells C++ support decrypted excel file? For example I want to decrypt file Book1.xlsx into Book1_decrypt.xlsx. How can I achieve that?


I am afraid that as Encrypted files are not supported, therefore decryption is also not possible. I will write back here as soon as some update is available about this requirement.