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
<PackageReference Include="CommonNetFuncs.Excel.ClosedXml" Version="4.0.43" />
<PackageVersion Include="CommonNetFuncs.Excel.ClosedXml" Version="4.0.43" />
<PackageReference Include="CommonNetFuncs.Excel.ClosedXml" />
paket add CommonNetFuncs.Excel.ClosedXml --version 4.0.43
#r "nuget: CommonNetFuncs.Excel.ClosedXml, 4.0.43"
#:package CommonNetFuncs.Excel.ClosedXml@4.0.43
#addin nuget:?package=CommonNetFuncs.Excel.ClosedXml&version=4.0.43
#tool nuget:?package=CommonNetFuncs.Excel.ClosedXml&version=4.0.43
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.0.43)
- CommonNetFuncs.Excel.Common (>= 4.0.43)
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 |