Skip to main content

Overview

The TTreeExport component provides functionality to export tree diagrams to various formats. It supports text files, XML, HTML tables, Excel spreadsheets, and JSON.

Components

TTreeExportForm

Dialog form for exporting tree data to various formats.
Properties:
  • CBFullSize - Export using full tree dimensions
  • Inherits all export options from TTeeExportFormBase

Export Data Classes

TTreeData (Base Class)

Base class for all tree export formats.

TTreeDataText

Export tree structure to delimited text format.
Features:
  • Hierarchical indentation using delimiters
  • Configurable delimiter character (tab, comma, etc.)
  • Optional text quotes
  • Line-by-line node export

TTreeDataXML

Export tree to XML format.
Features:
  • Standard XML structure with node hierarchy
  • Compact or formatted output
  • Configurable encoding
  • Includes node name, class, and text
XML Structure:

TTreeDataHTML

Export tree as HTML table.
Features:
  • Hierarchical table structure
  • Indentation using empty table cells
  • Border styling
  • Web-ready output
HTML Structure:

TTreeDataXLS

Export tree to Excel BIFF format.
Features:
  • Excel 97-2003 compatible format (.xls)
  • Hierarchical column layout
  • Each level in separate column
  • Direct Excel import support

TTreeDataJSON

Export tree to JSON format.
Features:
  • Nested JSON structure
  • Standard JSON syntax
  • Array-based children
JSON Structure:

Usage Examples

Show Export Dialog

Export to Text File

Export to XML

Export to HTML

Export to Excel

Export to JSON

Custom Delimiter Export

Compact XML Export

Helper Functions

ShowTreeExport

Display the tree export dialog.
Parameters:
  • AOwner - Owner component for the dialog
  • ATree - Tree to export

Export Formats Summary

Features

Text Export

  • Configurable delimiters (tab, comma, pipe, etc.)
  • Optional text quotes
  • Hierarchical indentation
  • Multi-line node text support

XML Export

  • Standard XML 1.0 format
  • UTF-8 encoding support
  • Compact or formatted output
  • Preserves node hierarchy and metadata

HTML Export

  • Table-based layout
  • Automatic indentation via empty cells
  • Browser-ready output
  • Customizable via CSS

Excel Export

  • BIFF5 format (Excel 97-2003)
  • Hierarchical column structure
  • Preserves tree levels
  • Direct Excel import

JSON Export

  • Standard JSON syntax
  • Nested object structure
  • Array-based children
  • JavaScript-ready

See Also