Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Collapse]TreeMap Control
   [Expand]Getting Started
   [Expand]Providing Data
   [Expand]Layout Algorithms
   [Expand]Colorizers
   [Collapse]End-User Interaction
    [Expand]Examples
     Highlighting and Selection
     Tooltips
     Printing and Exporting
   [Expand]Visual Elements
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Printing and Exporting

The TreeMap control allows you to print a treemap and export it to multiple file formats.

Make sure that your project references the DevExpress.Printing.v17.1.Core assembly to be capable to perform the following tasks.

Expanded Immediately Print a Treemap

To print a treemap by means of the system default printer without invoking any print dialogs, call the TreeMapControl.Print method.

Expanded Print a Treemap Using the Standard Print Dialog

The system print dialog makes it possible to configure common print settings before printing. For instance, you can set the number of printed copies.

To show the system print dialog, use the TreeMapControl.ShowPrintDialog method.

Expanded Invoke the Print Preview Dialog to Print/Export a Treemap

A treemap can be printed/exported with the Print Preview dialog. To invoke this dialog, use one of the following methods.

MethodDescription
TreeMapControl.ShowRibbonPrintPreview Creates a document to be printed and displays the Print Preview.
TreeMapControl.ShowPrintPreview Creates a document to be printed and displays the Print Preview with the Ribbon.

The code below demonstrates how to invoke the Print Preview with the Ribbon.

To immediately print a treemap, select the Quick Print item in the Preview.


To show the standard system dialog before printing, select the Print item.


Select a format from the Export To item's drop-down list to export a treemap.

Expanded Export a Treemap from Code

The TreeMap control supports the capability to export a treemap to numerous file formats.

MethodDescription
TreeMapControl.ExportToImage Exports a treemap to an image file.
TreeMapControl.ExportToMht Exports a treemap to an MHT file.
TreeMapControl.ExportToPdf Exports a treemap to a PDF file.
TreeMapControl.ExportToRtf Exports a treemap to an RTF file.
TreeMapControl.ExportToXls Exports a treemap to an XLS file.
TreeMapControl.ExportToXlsx Exports a treemap to an XLSX file.

The code below shows how to export a treemap to a PNG image.

Expanded See Also

How would you rate this topic?​​​​​​​