TreeGrid.Wpf.Export 1.0.0

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

TreeGrid.Wpf.Export

Excel (.xlsx) and PDF exporters for the TreeGrid.Wpf control. Excel export uses ClosedXML and PDF export uses QuestPDF. The core package can already export CSV, so you only need this package for xlsx or pdf.

Install

dotnet add package TreeGrid.Wpf.Export

Usage

using TreeGrid.Wpf.Export;

var options = new GridExportOptions
{
    Title = "Staff hierarchy",
    RowScope = ExportRowScope.VisibleRows,
    HierarchyStyle = HierarchyExportStyle.Outline
};

grid.Export(new ExcelExporter(), "staff.xlsx", options);
grid.Export(new PdfExporter(), "staff.pdf", options);
Option Values
RowScope VisibleRows, AllRows, SelectedRows
HierarchyStyle Indent, LevelColumn, Outline, None
Also IncludeHeaders, IncludeHiddenColumns, ApplyDisplayFormat, RowFilter

Outline maps the tree onto Excel's own row grouping, so the collapse controls in the sheet margin match the grid's expanders. Excel cells keep their data types instead of being written as text, so sorting and totals still work in Excel.

QuestPDF licensing

QuestPDF is free under its Community license for individuals, open-source projects and companies below its revenue threshold. Larger companies need a commercial QuestPDF license. If your application has not set QuestPDF.Settings.License before the first PDF export, PdfExporter sets it to Community. If you set a different license first, PdfExporter keeps it. See questpdf.com/license for the terms.

License

MIT (this package). ClosedXML is MIT licensed. QuestPDF has its own license, described above.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows 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
1.0.0 127 9/22/2026