ExcelRenderer.Mapping 1.11.2

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

ExcelRenderer.Mapping

Generate Excel (.xlsx) reports from templates using C# objects or JSON. Design the layout in Excel, add placeholders, and supply the data from your application.

The mapping library targets .NET Standard 2.1 and works without Microsoft Excel, rendering libraries or fonts. It supports simple values, repeating rows, nested array blocks, formatting, image binding and manual page breaks.

Install

dotnet add package ExcelRenderer.Mapping

Use a .NET Standard 2.1-compatible application, such as .NET 8 or .NET 10. .NET Framework is not supported.

Map a C# object

Enter **Customer in cell B2 of a workbook and save it as template.xlsx. Then run:

using ExcelRenderer.Mapping;

ExcelTemplateMapper.Map(
    "template.xlsx",
    "report.xlsx",
    new { Customer = "Alice" });

Cell B2 in report.xlsx contains Alice. The output is an ordinary XLSX workbook that can be opened in Excel or passed to a renderer.

Property names are case-sensitive. Keep the input and output paths different.

Map JSON data

Create data.json:

{ "Customer": "Alice" }

Read the JSON and map the same template:

using System.IO;
using System.Text.Json;
using ExcelRenderer.Mapping;

using var document = JsonDocument.Parse(File.ReadAllText("data.json"));
ExcelTemplateMapper.Map(
    "template.xlsx",
    "report.xlsx",
    document.RootElement);

Keep the JsonDocument alive until mapping completes.

Template reference

Task Guide
Build a complete invoice First workbook
Look up template directives and formatting Specification reference
Repeat rows and nested groups Array blocks
Insert page breaks Page breaks
Bind images and font colors Comments, font colors and images
Recalculate supported formulas explicitly Formula guide

Formula calculation is opt-in and supports a limited subset of Excel formulas. See the mapping guide for default formula handling and calculation options.

Render or use the command line

To convert the generated XLSX to PDF, PostScript, PNG or SVG from C#, add the ExcelRenderer package. See the C# quick start.

For command-line mapping and conversion, install ExcelRenderer.Tool. The tool includes Mapping; no separate library installation is needed:

dotnet tool install --global ExcelRenderer.Tool
excelrenderer xlsx template.xlsx --data data.json -o report.xlsx
excelrenderer pdf template.xlsx --data data.json -o report.pdf

More information

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
1.11.2 89 11/16/2026
1.11.1 101 11/15/2026
1.11.0 92 11/14/2026
1.10.5 90 11/11/2026
1.10.4 111 10/22/2026
1.10.3 96 10/21/2026
1.10.2 100 10/20/2026
1.10.1 99 10/19/2026
1.10.0 106 10/18/2026
1.9.2 91 10/17/2026
1.9.1 96 10/17/2026
1.9.0 121 10/16/2026
1.8.0 105 10/9/2026