Excelsior 5.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Excelsior --version 5.0.2
                    
NuGet\Install-Package Excelsior -Version 5.0.2
                    
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="Excelsior" Version="5.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Excelsior" Version="5.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Excelsior" />
                    
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 Excelsior --version 5.0.2
                    
#r "nuget: Excelsior, 5.0.2"
                    
#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 Excelsior@5.0.2
                    
#: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=Excelsior&version=5.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Excelsior&version=5.0.2
                    
Install as a Cake Tool

Excelsior

Excelsior is an Excel spreadsheet generation library with a distinctive data-driven approach. Uses DocumentFormat.OpenXml for spreadsheet creation and OpenXmlHtml for HTML cell rendering.

Usage

Model

Given an input class:

using Excelsior;

public class Employee
{
    [Column(Heading = "Employee ID", Order = 1)]
    public required int Id { get; init; }

    [Column(Heading = "Full Name", Order = 2)]
    public required string Name { get; init; }

    [Column(Heading = "Email Address", Order = 3)]
    public required string Email { get; init; }

    [Column(Heading = "Hire Date", Order = 4)]
    public Date? HireDate { get; init; }

    [Column(Heading = "Annual Salary", Order = 5)]
    public int Salary { get; init; }

    public bool IsActive { get; init; }

    public EmployeeStatus Status { get; init; }
}

[ColumnAttribute] is optional. If omitted:

  • Order is based on the order of the properties defined in the class.
  • Heading text is based on the property names that is camel case split.

Builder

BookBuilder is the root entry point. Once instantiated, the data for multiple sheets can be added.

var builder = new BookBuilder();

List<Employee> data =
[
    new()
    {
        Id = 1,
        Name = "John Doe",
        Email = "john@company.com",
        HireDate = new(2020, 1, 15),
        Salary = 75000,
        IsActive = true,
        Status = EmployeeStatus.FullTime
    },
    new()
    {
        Id = 2,
        Name = "Jane Smith",
        Email = "jane@company.com",
        HireDate = new(2019, 3, 22),
        Salary = 120000,
        IsActive = true,
        Status = EmployeeStatus.FullTime
    },
];
builder.AddSheet(data);

using var book = await builder.Build();

Documentation

See the readme for full documentation.

Product Compatible and additional computed target framework versions.
.NET 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 (5)

Showing the top 5 NuGet packages that depend on Excelsior:

Package Downloads
ExcelsiorAspose

Excelsior is an Excel spreadsheet generation library with a distinctive data-driven approach.

ExcelsiorClosedXml

Excelsior is an Excel spreadsheet generation library with a distinctive data-driven approach.

ExcelsiorSyncfusion

Excelsior is an Excel spreadsheet generation library with a distinctive data-driven approach.

Parchment

Parchment is a Word document generation library that combines docx templates or markdown with a .NET data model via liquid templating.

ExcelsiorOpenXml

Excelsior is an Excel spreadsheet generation library with a distinctive data-driven approach.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.4 45 6/26/2026
5.0.3 135 6/15/2026
5.0.2 108 6/12/2026
5.0.1 94 6/11/2026
5.0.0 124 6/6/2026
4.7.0 135 6/3/2026
4.6.0 101 6/3/2026
4.5.2 106 6/3/2026
4.5.1 99 6/3/2026
4.5.0 109 6/2/2026
4.4.0 105 6/2/2026
4.3.0 109 6/2/2026
4.2.0 150 5/25/2026
4.1.0 130 5/22/2026
4.0.0 117 5/21/2026
3.8.0 193 5/14/2026
3.7.0 133 5/12/2026
3.6.0 133 5/12/2026
3.5.1 106 5/12/2026
3.5.0 95 5/12/2026
Loading failed