I’m using the latest Cells for C++.
Where can I find how to open and save xlsx with password?
intrusive_ptr<Aspose::Cells::ILoadOptions> loadOpt = Factory::CreateILoadOptions(LoadFormat::LoadFormat_Xlsx); loadOpt->SetPassword(new String("123")); intrusive_ptr<Aspose::Cells::IWorkbook> wb = Factory::CreateIWorkbook(new String("Book1.xlsx"), loadOpt);
For saving with password, you can use Protect() method of API.
Thanks. I’ll try it.
We have observed this issue here and logged it in our database for further investigation. You will be notified here once any update is ready to share.
This issue is logged as:
CELLSCPP-256 - Password protected file cannot be loaded
We have analyzed the requirement and am afraid to share that in Aspose.Cells for CPP we don’t support encryption and decryption for the files. We are sorry for the inconvenience caused to you.
Will this be supported in the future?
Since my license expired today.
Yes, the ticket is still Open, so we might support in future versions. Once we support the feature, we will update in this thread.
Cells for C++ has no release version for monthes.
Any news? Thanks.
We are gathering information about next release and will share here once available.
We hope that the feature would be included into the version(s) included in Q2-Q3 of 2021.
We have further discussed this issue and afraid to share that Aspose.Cells.C++ does not support opening password-protected files. We have a plan to support it in the future but we cannot provide any ETA right now. We will update you here if it is implemented and ready for sharing.