Aspose.Cells.FOSS 26.10.0

Prefix Reserved
dotnet add package Aspose.Cells.FOSS --version 26.10.0
                    
NuGet\Install-Package Aspose.Cells.FOSS -Version 26.10.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.FOSS" Version="26.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspose.Cells.FOSS" Version="26.10.0" />
                    
Directory.Packages.props
<PackageReference Include="Aspose.Cells.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.FOSS --version 26.10.0
                    
#r "nuget: Aspose.Cells.FOSS, 26.10.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.FOSS@26.10.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.FOSS&version=26.10.0
                    
Install as a Cake Addin
#tool nuget:?package=Aspose.Cells.FOSS&version=26.10.0
                    
Install as a Cake Tool

Aspose.Cells FOSS for .NET

NuGet version License: MIT Contributors Issues

Aspose.Cells FOSS for .NET

Aspose.Cells FOSS for .NET is an MIT-licensed spreadsheet library for .NET. It provides an Aspose.Cells-style API for creating, loading, editing, and saving Excel .xlsx workbooks, and it can also export supported workbook content to PDF through the built-in renderer.

The package targets net8.0 and requires .NET 8 or later. It runs on Windows, Linux, and macOS, and does not require Microsoft Excel or any native Office installation. The NuGet package id is Aspose.Cells.FOSS; the public namespace is Aspose.Cells_FOSS.

The netstandard2.0 target has been removed. Applications targeting .NET Framework, .NET Core, or .NET 5-7 must upgrade to .NET 8 or later, or remain on a previous compatible package version.

Key Capabilities

  • Create, load, modify, and save Excel .xlsx workbooks with Workbook, Worksheet, Cells, and Cell.
  • Load malformed packages with recovery-oriented LoadOptions and inspect LoadDiagnostics.
  • Read and write scalar values, formulas, dates, and number formats.
  • Apply styles including fonts, fills, borders, alignment, wrapping, and locking.
  • Configure validations, conditional formatting, hyperlinks, defined names, filters, tables, comments, pictures, shapes, charts, and page setup.
  • Export workbooks to PDF with SaveFormat.Pdf or PdfSaveOptions.

Installation

dotnet add package Aspose.Cells.FOSS
<PackageReference Include="Aspose.Cells.FOSS" Version="26.10.0.0" />

Quick Start

using Aspose.Cells_FOSS;

var workbook = new Workbook();
var sheet = workbook.Worksheets[0];

sheet.Name = "Products";
sheet.Cells["A1"].PutValue("Product");
sheet.Cells["B1"].PutValue("Price");
sheet.Cells["A2"].PutValue("Apple");
sheet.Cells["B2"].PutValue(2.99m);
sheet.Cells["A3"].PutValue("Orange");
sheet.Cells["B3"].PutValue(1.99m);
sheet.Cells["B4"].Formula = "=SUM(B2:B3)";

var headerStyle = sheet.Cells["A1"].GetStyle();
headerStyle.Font.IsBold = true;
headerStyle.Font.Color = Color.FromArgb(255, 255, 255, 255);
headerStyle.Pattern = FillPattern.Solid;
headerStyle.ForegroundColor = Color.FromArgb(255, 34, 120, 212);

sheet.Cells["A1"].SetStyle(headerStyle);
sheet.Cells["B1"].SetStyle(headerStyle);

workbook.Save("products.xlsx");
workbook.Save("products.pdf", new PdfSaveOptions());

Load an existing workbook with repair-friendly options:

using System;
using Aspose.Cells_FOSS;

var loadOptions = new LoadOptions
{
    TryRepairPackage = true,
    TryRepairXml = true,
    StrictMode = false
};

var workbook = new Workbook("input.xlsx", loadOptions);

if (workbook.LoadDiagnostics.HasDataLossRisk)
{
    Console.WriteLine("Potential data loss risk detected during load.");
}

workbook.Worksheets[0].Cells["A1"].PutValue("Updated");
workbook.Save("updated.xlsx");

Examples

Runnable samples live under samples/. Feature areas currently covered include:

  • basic workbook and cell operations
  • load and repair behavior
  • styles
  • worksheet settings
  • validations
  • conditional formatting
  • hyperlinks and defined names
  • page setup
  • comments
  • charts
  • list objects
  • pictures
  • document properties
  • shapes
  • PDF conversion

Run one sample from the repository root:

dotnet run --project samples\Aspose.Cells_FOSS.Samples.Basic\Aspose.Cells_FOSS.Samples.Basic.csproj

Documentation

Scope and Limitations

  • Only .xlsx is supported as the spreadsheet file format for load and save.
  • The library stores formulas but does not include a formula calculation engine.
  • PDF export is supported, but there is no general HTML export or image export API.
  • Macros, VBA, and pivot tables are outside the supported public API surface.
  • Broader format coverage and richer spreadsheet features belong to the commercial Aspose.Cells product line.

Development and Testing

Building from source requires the .NET 8 SDK or a newer SDK capable of targeting net8.0. The library and samples target net8.0.

Build the main library:

dotnet build src\Aspose.Cells_FOSS\Aspose.Cells_FOSS.csproj -c Debug

Build the basic sample:

dotnet build samples\Aspose.Cells_FOSS.Samples.Basic\Aspose.Cells_FOSS.Samples.Basic.csproj -c Debug

This checkout does not contain a tests/ directory. These builds check compilation; they do not provide automated behavioral test coverage.

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Aspose.Cells.FOSS:

Package Downloads
Graphene.AIOrchestrator

Agent orchestration engine (chat pipeline, tools, documents, email) backing AgentBridge.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.10.0 298 10/26/2026
26.9.0 245 9/1/2026
26.7.0 2,476 7/17/2026
26.6.0 177 6/15/2026
26.5.0 174 5/20/2026

Breaking change: .NET 8 or later is required. The netstandard2.0 target and support for older target frameworks have been removed.
https://github.com/aspose-cells-foss/Aspose.Cells-FOSS-for-.NET/releases/tag/V26.10.0