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
<PackageReference Include="Aspose.Cells.FOSS" Version="26.10.0" />
<PackageVersion Include="Aspose.Cells.FOSS" Version="26.10.0" />
<PackageReference Include="Aspose.Cells.FOSS" />
paket add Aspose.Cells.FOSS --version 26.10.0
#r "nuget: Aspose.Cells.FOSS, 26.10.0"
#:package Aspose.Cells.FOSS@26.10.0
#addin nuget:?package=Aspose.Cells.FOSS&version=26.10.0
#tool nuget:?package=Aspose.Cells.FOSS&version=26.10.0
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.
Navigation
- Key Capabilities
- Installation
- Quick Start
- Examples
- Documentation
- Scope and Limitations
- Development and Testing
- License
Key Capabilities
- Create, load, modify, and save Excel
.xlsxworkbooks withWorkbook,Worksheet,Cells, andCell. - Load malformed packages with recovery-oriented
LoadOptionsand inspectLoadDiagnostics. - 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.PdforPdfSaveOptions.
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
- Local documentation landing page
- Samples overview
- V26.10.0 release notes
- Contributor and agent instructions
Scope and Limitations
- Only
.xlsxis 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 | Versions 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. |
-
net8.0
- SkiaSharp (>= 2.88.8)
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.
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