CommonNetFuncs.Excel.ClosedXml 4.0.43

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

CommonNetFuncs.Excel.ClosedXml

License NuGet Version nuget

This project contains helper methods for reading and writing Excel files using the ClosedXML library in .NET applications.

Contents


Export

Provides a GenericExcelExport extension method that converts any IEnumerable<T> into a .xlsx MemoryStream using ClosedXML. Supports optional Excel table formatting (with configurable table style), custom sheet and table names, column exclusion, and text wrapping.

Export Usage Examples

<details> <summary><h3>Usage Examples</h3></summary>

GenericExcelExport
using CommonNetFuncs.Excel.ClosedXml;

List<MyRecord> data = GetData();

// Basic export
MemoryStream? stream = await data.GenericExcelExport();

// Export as a formatted Excel table, skipping a column, with a custom sheet name
MemoryStream? stream = await data.GenericExcelExport(
    createTable: true,
    sheetName: "Report",
    tableName: "ReportTable",
    skipColumnNames: ["InternalId"],
    tableStyle: ETableStyle.TableStyleMedium9
);

// Return as a file download from an ASP.NET Core endpoint
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "report.xlsx");

</details>

Installation

Install via NuGet:

dotnet add package CommonNetFuncs.Excel.ClosedXml

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

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.43 0 5/14/2026
4.0.40 91 5/10/2026
4.0.39 88 5/10/2026
4.0.37 91 5/9/2026
4.0.36 88 5/8/2026
4.0.31 118 4/21/2026
4.0.29 103 4/20/2026
4.0.28 98 4/19/2026
4.0.27 99 4/15/2026
4.0.25 105 4/3/2026
4.0.17 111 2/23/2026
4.0.15 112 2/8/2026
4.0.14 108 2/7/2026
4.0.12 112 2/3/2026
4.0.10 114 1/24/2026
3.8.42 95 3/5/2026
3.8.38 108 2/24/2026
3.8.33 116 2/2/2026
3.8.32 112 2/2/2026
Loading failed