Aspose.Cells.Cpp.FOSS 26.4.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Aspose.Cells.Cpp.FOSS --version 26.4.0
                    
NuGet\Install-Package Aspose.Cells.Cpp.FOSS -Version 26.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.Cells.Cpp.FOSS" Version="26.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspose.Cells.Cpp.FOSS" Version="26.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Aspose.Cells.Cpp.FOSS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspose.Cells.Cpp.FOSS --version 26.4.0
                    
#r "nuget: Aspose.Cells.Cpp.FOSS, 26.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspose.Cells.Cpp.FOSS@26.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspose.Cells.Cpp.FOSS&version=26.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Aspose.Cells.Cpp.FOSS&version=26.4.0
                    
Install as a Cake Tool

Aspose.Cells FOSS for C++

Aspose.Cells FOSS is an open-source C++ library for creating, loading, editing, and saving Excel .xlsx workbooks without requiring Microsoft Excel.

Highlights

  • Aspose.Cells-compatible API surface for common XLSX scenarios
  • .xlsx load/save from file paths and streams
  • Cell values, formulas, styles, merges, and number formats
  • Conditional formatting, data validation, hyperlinks, names, comments

How to build

cd samples
mkdir build
cd build
cmake ..
cmake --build .

Quick Start

Create, style, and save a workbook

#include "aspose/cells_foss/Workbook.h"
#include "aspose/cells_foss/WorksheetCollection.h"
#include "aspose/cells_foss/Worksheet.h"
#include "aspose/cells_foss/Cell.h"
#include "aspose/cells_foss/Style.h"
#include "aspose/cells_foss/Color.h"
#include "aspose/cells_foss/Font.h"

using namespace Aspose::Cells_FOSS;

int main() {
    Workbook workbook;
    Worksheet& sheet = workbook.GetWorksheets()[0];

    sheet.SetName("Products");
    sheet.GetCells()["A1"].PutValue("Product");
    sheet.GetCells()["B1"].PutValue("Price");
    sheet.GetCells()["A2"].PutValue("Apple");
    sheet.GetCells()["B2"].PutValue(2.99);
    sheet.GetCells()["A3"].PutValue("Orange");
    sheet.GetCells()["B3"].PutValue(1.99);
    sheet.GetCells()["B4"].SetFormula("=SUM(B2:B3)");

    Style headerStyle = sheet.GetCells()["A1"].GetStyle();
    Font font;
    font.SetBold(true);
    font.SetColor(Color::FromArgb(255, 255, 255, 255));
    headerStyle.SetFont(font);
    headerStyle.SetPattern(FillPattern::Solid);
    headerStyle.SetForegroundColor(Color::FromArgb(255, 34, 120, 212));
    sheet.GetCells()["A1"].SetStyle(headerStyle);
    sheet.GetCells()["B1"].SetStyle(headerStyle);

    workbook.Save("products.xlsx");
    return 0;
}

Supported Areas

  • Workbook and worksheet management
  • Cells and formulas
  • Style model (font, fill, borders, alignment, number formats)
  • Worksheet settings (visibility, zoom, RTL, gridlines, protection)
  • Hyperlinks and defined names
  • Data validation and conditional formatting
  • Page setup and print-related settings
  • Document properties

License

MIT. See License/LICENSE.txt.

Support

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.4.1 204 6/24/2026
26.4.0 175 6/24/2026