HTML JPG PDF XML XLSB
Aspose.Cells  for Java
XLSB

Unlock XLSB Files via Java

Remove protection from Excel spreadsheets including XLSB file using Java Library.

How to Remove Protection XLSB File Using Java

In order to unlock XLSB file, we’ll use

Aspose.Cells for Java

API which is a feature-rich, powerful and easy to use protection API for Java platform. You can download its latest version directly from

Maven

and install it within your Maven-based project by adding the following configurations to the pom.xml.

Repository


<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>

Dependency

<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cells</artifactId>
<version>version of aspose-cells API</version>
<classifier>jdk17</classifier>
</dependency>

Steps to unlock XLSB via Java

  1. Instantiate Workbook class with path to protected XLSB file
  2. Get the default or any Worksheet to remove protection
  3. Remove Worksheet protection with Worksheet.Unprotect method
  4. Remove Workbook protection with Workbook.Unprotect method
  5. Save result in XLSB format

System Requirements

Aspose.Cells for Java supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.

 

Unlock XLSB Files via Java


Workbook wkb = new Workbook("source.xlsb");

WorksheetCollection wksc = wkb.getWorksheets();
Worksheet wks = wksc.get(0);

// Unprotecting the XLSB
wks.unprotect();

// Save the XLSB file.
wkb.save("Worksheet_out.xlsb", FileFormatType.EXCEL_97_TO_2003);
 
  • About Aspose.Cells for Java API

    Aspose.Cells API can be used to create, edit, convert and render Microsoft Excel formats to different formats. Moreover, it can be used for comprehensive charting, scalable reporting and reliable calculations within software applications. Aspose.Cells is a standalone API and it does not require any software like Microsoft or OpenOffice.

    Free App to Unlock XLSB

    Other Supported Unlocking Formats

    Using Java, one can easily remove protection / unlocking of different formats including.

    ODS (OpenDocument Spreadsheet File)
    XLS (Excel Binary Format)
    XLSM (Spreadsheet File)
    XLSX (OOXML Excel File)