I would like to provide a password for workbook

I would like to provide a password for workbook, but with our jar i am unable to find “com.aspose.cells.WorkbookSettings” class.
what should we need to do to get those classes?
or is there any way to set the password to open the workbook using our existing licence version 2.2.
please advise

Well, the WorkbookSettings is newer class in latest version, e.g v7.x.x of Aspose.Cells for JAVA.


It is recommended that you should upgrade to our latest version, the latest component is more robust and enhanced regarding features and performance.

If you still persists with your older version, I think you may try to find the APIs, i.e. Workbook.protectFile() if it exists.

Sample code:

workbook.protectFile(ProtectionType.OPEN_FILE,“007”);