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
<PackageReference Include="TreeGrid.Wpf.Export" Version="1.0.0" />
<PackageVersion Include="TreeGrid.Wpf.Export" Version="1.0.0" />
<PackageReference Include="TreeGrid.Wpf.Export" />
paket add TreeGrid.Wpf.Export --version 1.0.0
#r "nuget: TreeGrid.Wpf.Export, 1.0.0"
#:package TreeGrid.Wpf.Export@1.0.0
#addin nuget:?package=TreeGrid.Wpf.Export&version=1.0.0
#tool nuget:?package=TreeGrid.Wpf.Export&version=1.0.0
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- ClosedXML (>= 0.104.1)
- QuestPDF (>= 2024.12.3)
- TreeGrid.Wpf (>= 1.0.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 |
|---|---|---|
| 1.0.0 | 127 | 9/22/2026 |