# Printing and Exporting | WPF Controls | DevExpress Documentation

## Print Data

The [Print Data](/WPF/6160/controls-and-libraries/data-grid/printing-and-exporting/print-data) topic demonstrates how to use the [Printing-Exporting](/WPF/6570/controls-and-libraries/printing-exporting) library to show the **Print Preview** window and print [GridControl](/WPF/DevExpress.Xpf.Grid.GridControl) data.

![](/WPF/images/printpreview128961.png)

The [GridControl](/WPF/DevExpress.Xpf.Grid.GridControl) does not allow you to print and export data from a separate thread.

## Data-Aware Export

The [Data-Aware Export](/WPF/10018/controls-and-libraries/data-grid/printing-and-exporting/data-aware-export) is the default export mode for the **XLS**, **XLSX**, and **CSV** formats. This mode allows end users to process exported data in Microsoft Excel. The data shaping options are retained. For example, the [GridControl](/WPF/DevExpress.Xpf.Grid.GridControl) exports summaries as formulas.

![](/WPF/images/WPF_Grid_ExportGroup.png)

## WYSIWYG Export

[WYSIWYG Export](/WPF/118842/controls-and-libraries/data-grid/printing-and-exporting/wysiwyg-export) mode uses the [Printing-Exporting](/WPF/6570/controls-and-libraries/printing-exporting) library to export data. The exported document retains the layout and appearance of grid elements. The data shaping options are not retained. For example, the [GridControl](/WPF/DevExpress.Xpf.Grid.GridControl) exports summary values as text strings instead of formulas.

![](/WPF/images/WPF_Grid_wysiwygExport.png)

## Generate a Grid-Based Report

You can [Generate a Grid-Based Report](/WPF/117300/controls-and-libraries/data-grid/printing-and-exporting/grid-based-report-generation) with the same data, appearance, and layout as in the displayed [GridControl](/WPF/DevExpress.Xpf.Grid.GridControl). Users can customize a Report’s appearance.

![](/WPF/images/wpf_grid_reportdesigner.png)

## Usage Notes

- The [GridControl](/WPF/DevExpress.Xpf.Grid.GridControl) ignores custom [CellTemplates](/WPF/DevExpress.Xpf.Grid.ColumnBase.CellTemplate) when you print or export data. Use the [PrintCellStyle](/WPF/DevExpress.Xpf.Grid.ColumnBase.PrintCellStyle) property if you print data or export it in **WYSIWYG** mode ([Customize Appearance](/WPF/118842/controls-and-libraries/data-grid/printing-and-exporting/wysiwyg-export#customize-appearance)). In **Data-Aware** mode, use events of the `_ExportOptionsEx` object to format cell values ([Customize Appearance](/WPF/10018/controls-and-libraries/data-grid/printing-and-exporting/data-aware-export#customize-appearance)).

See Also

[Document Post-Processing](/WPF/404666/controls-and-libraries/data-grid/printing-and-exporting/document-post-processing)