CommonNetFuncs.Excel.ClosedXml
4.1.0
dotnet add package CommonNetFuncs.Excel.ClosedXml --version 4.1.0
NuGet\Install-Package CommonNetFuncs.Excel.ClosedXml -Version 4.1.0
<PackageReference Include="CommonNetFuncs.Excel.ClosedXml" Version="4.1.0" />
<PackageVersion Include="CommonNetFuncs.Excel.ClosedXml" Version="4.1.0" />
<PackageReference Include="CommonNetFuncs.Excel.ClosedXml" />
paket add CommonNetFuncs.Excel.ClosedXml --version 4.1.0
#r "nuget: CommonNetFuncs.Excel.ClosedXml, 4.1.0"
#:package CommonNetFuncs.Excel.ClosedXml@4.1.0
#addin nuget:?package=CommonNetFuncs.Excel.ClosedXml&version=4.1.0
#tool nuget:?package=CommonNetFuncs.Excel.ClosedXml&version=4.1.0
CommonNetFuncs.Excel.ClosedXml
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 | Versions 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. |
-
net10.0
- ClosedXML (>= 0.105.0)
- CommonNetFuncs.Core (>= 4.1.0)
- CommonNetFuncs.Excel.Common (>= 4.1.0)
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.1.0 | 92 | 6/5/2026 |
| 4.0.53 | 99 | 5/28/2026 |
| 4.0.51 | 111 | 5/27/2026 |
| 4.0.50 | 90 | 5/26/2026 |
| 4.0.43 | 100 | 5/14/2026 |
| 4.0.40 | 107 | 5/10/2026 |
| 4.0.39 | 100 | 5/10/2026 |
| 4.0.37 | 105 | 5/9/2026 |
| 4.0.36 | 100 | 5/8/2026 |
| 4.0.31 | 124 | 4/21/2026 |
| 4.0.29 | 111 | 4/20/2026 |
| 4.0.28 | 107 | 4/19/2026 |
| 4.0.27 | 110 | 4/15/2026 |
| 4.0.25 | 114 | 4/3/2026 |
| 4.0.17 | 119 | 2/23/2026 |
| 4.0.15 | 118 | 2/8/2026 |
| 4.0.14 | 115 | 2/7/2026 |
| 3.8.42 | 102 | 3/5/2026 |
| 3.8.38 | 116 | 2/24/2026 |