The below link is not working.
Hi,
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”);