HTML JPG PDF XML XLSB
Aspose.Cells  for C++
XLSB

Unlock XLSB Files via C++

Remove protection from Excel spreadsheets including XLSB file using C++ Library.

How to Remove Protection of XLSB File Using C++

In order to unlock XLSB file, we’ll use

Aspose.Cells for C++

API which is a feature-rich, powerful and easy to use document protection API for C++ platform. You can download its latest version directly, just open

NuGet

package manager, search for Aspose.Cells.Cpp and install. You may also use the following command from the Package Manager Console.

Aspose.Cells


PM> Install-Package Aspose.Cells.Cpp

Unlock XLSB via C++

You need

aspose.cells.dll

referenced in your project to execute the following workflow.

  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 C++ supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with C++ Runtime Environment for Windows 32 bit, Windows 64 bit and Linux 64 bit.
  • Add reference to the Aspose.Cells for C++ DLL in your project.
 

Command


Aspose::Cells::Startup();

// instantiate a Workbook object with protected XLSB file
Workbook workbook(u"protected.xlsb");

// access the default worksheet in the Excel file
Worksheet worksheet = workbook.GetWorksheets().Get(0);

// unprotect worksheet without a password
worksheet.Unprotect();

// unprotect workbook with password
workbook.Unprotect("password");

// save the result back in XLSB format
workbook.Save("unprotected.xlsb", SaveFormat::Auto);

Aspose::Cells::Cleanup();
 
  • About Aspose.Cells for C++ 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 C++, 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)