The below link is not working.
Hi,
Thanks for pointing it out.
We found an issue with the demo as you pointed out and we are sorry for the inconvenience. We will fix the issue soon.
We recommend you to kindly see the similar documentation topic:
Also, you may check the offline demo(s) for our featured demos here.
Thank you.
Hi,
Thanks for your posting and using Aspose.Cells for Java.
We will fix the broken link issues in Live Demos.
For latest demos code, please refer to the following link. These offline demos use the latest code and are very simple console based examples.
Demos - Aspose.Cells for Java v7.0.0 And Later
Also, for your ease and demonstration, I have created an Encrypted file using the latest version:
Aspose.Cells
for Java v7.2.2.1 and attached the output xlsx for your reference.
Please see the code below.
Java
//Instantiate a Workbook
Workbook workbook = new Workbook();
//Password protect the file.
workbook.getSettings().setPassword(“1234”);
//Specify XOR encrption type.
workbook.setEncryptionOptions(EncryptionType.XOR, 40);
//Specify Strong Encryption type (RC4,Microsoft Strong Cryptographic Provider).
workbook.setEncryptionOptions(EncryptionType.STRONG_CRYPTOGRAPHIC_PROVIDER, 128);
//Save the excel file.
workbook.save(“F:\Shak-Data-RW\Downloads\Output.xlsx”);