Aspose.Cells.FOSS
26.7.0
Prefix Reserved
dotnet add package Aspose.Cells.FOSS --version 26.7.0
NuGet\Install-Package Aspose.Cells.FOSS -Version 26.7.0
<PackageReference Include="Aspose.Cells.FOSS" Version="26.7.0" />
<PackageVersion Include="Aspose.Cells.FOSS" Version="26.7.0" />
<PackageReference Include="Aspose.Cells.FOSS" />
paket add Aspose.Cells.FOSS --version 26.7.0
#r "nuget: Aspose.Cells.FOSS, 26.7.0"
#:package Aspose.Cells.FOSS@26.7.0
#addin nuget:?package=Aspose.Cells.FOSS&version=26.7.0
#tool nuget:?package=Aspose.Cells.FOSS&version=26.7.0
Aspose.Cells FOSS for .NET
Aspose.Cells FOSS is an open-source .NET library for creating, loading, editing, and saving Excel .xlsx workbooks without requiring Microsoft Excel.
Highlights
- Aspose.Cells-compatible API surface for common XLSX scenarios
.xlsxload/save from file paths and streams- Cell values, formulas, styles, merges, and number formats
- Conditional formatting, data validation, hyperlinks, names, tables, charts, shapes, comments, pictures
- Recovery-oriented loading with diagnostics and warning callbacks
- Multi-targeted library:
netstandard2.0andnet8.0
Installation
dotnet add package Aspose.Cells.FOSS
Quick Start
Create, style, and save a workbook
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");
Load workbook with recovery options and diagnostics
using System;
using Aspose.Cells_FOSS;
public sealed class ConsoleWarningCallback : IWarningCallback
{
public void Warning(WarningInfo warningInfo)
{
Console.WriteLine("[{0}] {1}: {2}", warningInfo.Severity, warningInfo.Code, warningInfo.Message);
}
}
var loadOptions = new LoadOptions
{
TryRepairPackage = true,
TryRepairXml = true,
StrictMode = false,
WarningCallback = new ConsoleWarningCallback()
};
var workbook = new Workbook("input.xlsx", loadOptions);
if (workbook.LoadDiagnostics.HasRepairs)
{
Console.WriteLine("Load repairs were applied.");
}
if (workbook.LoadDiagnostics.HasDataLossRisk)
{
Console.WriteLine("Potential data loss risk detected during load.");
}
workbook.Worksheets[0].Cells["A1"].PutValue("Updated");
workbook.Save("updated.xlsx");
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
- Tables (
ListObjects) - Pictures, shapes, and charts
- Document properties
For runnable examples, see samples/:
Aspose.Cells_FOSS.Samples.BasicAspose.Cells_FOSS.Samples.LoadingAspose.Cells_FOSS.Samples.StylesAspose.Cells_FOSS.Samples.WorksheetSettingsAspose.Cells_FOSS.Samples.ValidationsAspose.Cells_FOSS.Samples.ConditionalFormattingAspose.Cells_FOSS.Samples.HyperlinksAndNamesAspose.Cells_FOSS.Samples.PageSetupAspose.Cells_FOSS.Samples.ShapesAspose.Cells_FOSS.Samples.ChartsAspose.Cells_FOSS.Samples.CommentsAspose.Cells_FOSS.Samples.DocumentPropertiesAspose.Cells_FOSS.Samples.ListObjectsAspose.Cells_FOSS.Samples.Pictures
Build from Source
Run commands from the repository root:
dotnet build src\Aspose.Cells_FOSS\Aspose.Cells_FOSS.csproj -c Debug
dotnet build samples\Aspose.Cells_FOSS.Samples.Basic\Aspose.Cells_FOSS.Samples.Basic.csproj -c Debug
Compatibility
Primary targets:
netstandard2.0net8.0
Because the package targets netstandard2.0, it can also be consumed by many compatible runtimes (for example .NET Framework 4.6.1+ and modern .NET).
License
MIT. See License/LICENSE.txt.
Support
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
-
net8.0
- No dependencies.
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.