The TreeList extension allows you to export data to a file or stream in the following formats:
- PDF (TreeListExtension.ExportToPdf, TreeListExtension.WritePdf)
- XLS (TreeListExtension.ExportToXls, TreeListExtension.WriteXls)
- XLSX (TreeListExtension.ExportToXlsx, TreeListExtension.WriteXlsx)
- RTF (TreeListExtension.ExportToRtf, TreeListExtension.WriteRtf)
- DOCX (TreeListExtension.ExportToDocx, TreeListExtension.WriteDocx)
In this demo, use the following properties to specify the tree list's export settings:
- ShowTreeButtons - Specifies whether the tree list buttons are displayed in an exported document.
- ExpandAllNodes - Controls whether the tree list should be exported with all its nodes expanded regardless of their current expanded state.
- AutoWidth - Automatically resizes the tree list to fit the printed page.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxTreeListDemos |