Iyulab.ClosedXML.Report
0.2.12
dotnet add package Iyulab.ClosedXML.Report --version 0.2.12
NuGet\Install-Package Iyulab.ClosedXML.Report -Version 0.2.12
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="Iyulab.ClosedXML.Report" Version="0.2.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Iyulab.ClosedXML.Report" Version="0.2.12" />
<PackageReference Include="Iyulab.ClosedXML.Report" />
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 Iyulab.ClosedXML.Report --version 0.2.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Iyulab.ClosedXML.Report, 0.2.12"
#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 Iyulab.ClosedXML.Report@0.2.12
#: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=Iyulab.ClosedXML.Report&version=0.2.12
#tool nuget:?package=Iyulab.ClosedXML.Report&version=0.2.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ClosedXML.Report.XLCustom
Based on ClosedXML.Report
This extension maintains full compatibility with the original library while adding enhanced expression handling capabilities.
What's New
ClosedXML.Report.XLCustom extends the original library with:
- Format expressions:
{{Value:F2}}
,{{Date:yyyy-MM-dd}}
- Function expressions:
{{Value|bold}}
,{{ImageUrl|image(150)}}
- Custom function registration
- Built-in functions for styling and formatting
Installation
Install-Package ClosedXML.Report.XLCustom
Quick Start
var template = new XLCustomTemplate("template.xlsx");
template.RegisterBuiltIns(); // Add built-in functions
// Standard ClosedXML.Report usage
template.AddVariable("Title", "Sales Report");
template.AddVariable("Products", productList);
// Custom function registration
template.RegisterFunction("highlight", (cell, value, parameters) => {
cell.SetValue(value);
cell.Style.Fill.BackgroundColor = XLColor.Yellow;
});
template.Generate();
template.SaveAs("result.xlsx");
Expression Syntax
Standard Variables (Original ClosedXML.Report)
{{VariableName}}
{{Object.Property}}
Format Expressions (New)
{{Price:C}} // Currency format
{{Date:yyyy-MM-dd}} // Date format
{{Value:F2}} // 2 decimal places
Function Expressions (New)
{{Text|bold}} // Make bold
{{Text|color(Red)}} // Set color
{{ImagePath|image(100,100)}} // Insert image
{{Url|link(Click here)}} // Create hyperlink
Built-in Functions
Register with template.RegisterBuiltIns()
:
Function | Usage | Description |
---|---|---|
bold |
{{Text|bold}} |
Bold text |
italic |
{{Text|italic}} |
Italic text |
color |
{{Text|color(Red)}} |
Text color |
link |
{{Url|link(Display)}} |
Hyperlink |
image |
{{Path|image(150)}} |
Insert image |
Built-in Global Variables
Automatically available:
{{Today:d}}
- Current date{{Year}}
- Current year{{MachineName}}
- Computer name{{UserName}}
- User name
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 was computed. 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.
-
net6.0
- ClosedXML.Report (>= 0.2.12)
- SixLabors.ImageSharp (>= 3.1.8)
- Svg.Skia (>= 3.0.3)
-
net7.0
- ClosedXML.Report (>= 0.2.12)
- SixLabors.ImageSharp (>= 3.1.8)
- Svg.Skia (>= 3.0.3)
-
net8.0
- ClosedXML.Report (>= 0.2.12)
- SixLabors.ImageSharp (>= 3.1.8)
- Svg.Skia (>= 3.0.3)
-
net9.0
- ClosedXML.Report (>= 0.2.12)
- SixLabors.ImageSharp (>= 3.1.8)
- Svg.Skia (>= 3.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Iyulab.ClosedXML.Report:
Package | Downloads |
---|---|
DocuChef
A flexible .NET library that transforms data into professionally formatted documents through intuitive template binding, serving Excel, Word, PowerPoint, and beyond. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.2.12 | 123 | 6/1/2025 |