Printing and Exporting
Print Data
The Print Data topic demonstrates how to use the Printing-Exporting library to show the Print Preview window and print GridControl data.
The GridControl does not allow you to print and export data from a separate thread.
Data-Aware Export
The 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 exports summaries as formulas.
WYSIWYG Export
WYSIWYG Export mode uses the 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 exports summary values as text strings instead of formulas.
Generate a Grid-Based Report
You can Generate a Grid-Based Report with the same data, appearance, and layout as in the displayed GridControl. Users can customize a Report’s appearance.
Usage Notes
- The GridControl ignores custom CellTemplates when you print or export data. Use the PrintCellStyle property if you print data or export it in WYSIWYG mode (Customize Appearance). In Data-Aware mode, use events of the
_ExportOptionsEx
object to format cell values (Customize Appearance).