Skip to main content
A newer version of this page is available.
All docs
V20.2

HierarchicalChartControlBase.ExportToXls(Stream) Method

Exports a treemap/sunburst to the specified file in the XLS format.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v20.2.UI.dll

NuGet Package: DevExpress.Win.TreeMap

Declaration

public void ExportToXls(
    Stream stream
)

Parameters

Name Type Description
stream Stream

The full path (including the file name and extension) where the XLS file will be created.

Remarks

To print the document immediately using the default printer without invoking any dialogs, use the HierarchicalChartControlBase.Print method.

To show the standard Print dialog, use the HierarchicalChartControlBase.ShowPrintDialog method. The dialog allows end-users to print the chart, select the printer (if required), specify the range of pages to print, the number of copies, etc.

To display the DevExpress Print Preview, use one of the following methods.

Method Description
HierarchicalChartControlBase.ShowPrintPreview Creates the print document and displays the Print Preview of the document.
HierarchicalChartControlBase.ShowRibbonPrintPreview Creates the print document and displays the Print Preview with the Ribbon toolbar of the document.

To export the treemap or sunburst, use the appropriate ExportTo method (e.g., HierarchicalChartControlBase.ExportToPdf, HierarchicalChartControlBase.ExportToImage, HierarchicalChartControlBase.ExportToXls, HierarchicalChartControlBase.ExportToXlsx, HierarchicalChartControlBase.ExportToRtf, HierarchicalChartControlBase.ExportToMht.)

Important

The chart can be previewed, printed and exported only if the Printing-Exporting Library is available. Make sure you add a reference to the DevExpress.XtraPrinting.v20.2 assembly.

See Also