The DevExpress ASP.NET MVC Tree List allows you to export data to a file or stream in the following formats:
- PDF (ExportToPdf, WritePdf)
- XLS (ExportToXls, WriteXls)
- XLSX (ExportToXlsx, WriteXlsx)
- RTF (ExportToRtf, WriteRtf)
- DOCX (ExportToDocx, 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.