PNG JPG BMP TIFF XLSB
Aspose.Cells  for .NET

Parse XLSB Formats in C#

Native and high performance XLSB document parsing using server-side Aspose.Cells for .NET APIs, without the use of any software like Microsoft or Adobe PDF.

How to Parse XLSB File Using C#

In order to parse XLSB file, we’ll use Aspose.Cells for .NET API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open NuGet package manager, search for Aspose.Cells and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.Cells

Steps to Parse XLSB Files in C#

A basic document parsing with Aspose.Cells for .NET APIs can be done with just few lines of code. Parse text & images from Microsoft Excel XLS, XLSX, XLSM, XLSB and OpenDocument ODS files.

  • Load XLSB document.
  • Select sheet.
  • Get the picture and image type.
  • Save the image.
  • Save document

System Requirements

Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Mono or Xamarin Platforms
  • Development environment like Microsoft Visual Studio
  • Add reference to the Aspose.Cells for .NET DLL in your project - Install from NuGet using the Download button above
 

Parse XLSB Files - C#

    // extract images from Worksheets 
    // open a template Excel file
    Workbook workbook = new Workbook("sampleExtractImagesFromWorksheets.xlsb");
    
    // get the first worksheet
    Worksheet worksheet = workbook.Worksheets[0];
    
    // get the first Picture in the first worksheet
    Aspose.Cells.Drawing.Picture pic = worksheet.Pictures[0];
    
    // set the output image file path
    string picformat = pic.ImageType.ToString();
                
    // Note: you may evaluate the image format before specifying the image path
    // define ImageOrPrintOptions
    Aspose.Cells.Rendering.ImageOrPrintOptions printoption = new  Aspose.Cells.Rendering.ImageOrPrintOptions();
    
    // specify the image format
    printoption.ImageType =  Aspose.Cells.Drawing.ImageType.Jpeg;
                
    // save the image
    pic.ToImage("outputExtractImagesFromWorksheets.jpg", printoption);  

    
 
  • About Aspose.Cells for .NET 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.

    Online XLSB Parser Live Demos

    Other Supported Parsing Formats

    Using C#, one can easily parse other formats including.

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