OfficeDocuments.Excel.Advanced 4.0.0

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

OfficeDocuments.Excel.Advanced

Optional advanced layer for OfficeDocuments.Excel. It adds the heavier, less-common Excel features on top of the minimal core so a consumer who only needs cells, rows, ranges, and styles does not carry them.

The advanced features are exposed as extension methods over the core ISpreadsheet and IWorksheet interfaces. Add the package, add a using, and the calls light up on the objects you already have.

What is in here

Feature API
Structured tables ISpreadsheet.AddTable / GetTable / GetTables / RenameTable / ResizeTable / RemoveTable
Named ranges ISpreadsheet.AddNamedRange
Workbook protection ISpreadsheet.ProtectWorkbook
Worksheet protection IWorksheet.Protect
Image embedding IWorksheet.AddImage

Data validation, conditional formatting, hyperlinks, and comments are not here — they live on IRange / ICell in the core package.

Usage

using OfficeDocuments.Excel;
using OfficeDocuments.Excel.Advanced; // brings the advanced extensions into scope

using var spreadsheet = Spreadsheet.CreateDocument(stream);
var sheet = spreadsheet.AddWorksheet("Data");
// ... write cells ...

var range = sheet.GetRange("A1:C10");
spreadsheet.AddTable(range, ["Id", "Name", "Value"]);
spreadsheet.AddNamedRange("MyData", range);
sheet.AddImage("logo.png", 1, 1, 3, 5);
spreadsheet.ProtectWorkbook("secret");

The extensions require the built-in Spreadsheet / Worksheet implementation from the core package; they throw ArgumentException if handed a foreign ISpreadsheet / IWorksheet.

Versioning

Ships in lockstep with OfficeDocuments.Excel on the same version line. See the v3 → v4 migration guide for what moved here in v4 and how to update your code.

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 is compatible.  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 is compatible.  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

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
4.0.0 96 8/6/2026