Skip to content

Use our WPF GridControl's styles and templates to customize the appearance of printed or exported (WYSIWYG mode) content.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-data-grid-customize-print-export-appearance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Data Grid - Customize the Appearance of Printed/Exported Information

This example demonstrates how to use our WPF GridControl's styles and templates to customize the appearance of printed or exported (WYSIWYG mode) content.

Example Structure

PrintCustomCells

View File: PrintCustomCells/MainWindow.xaml

This project creates a custom PrintCellStyle for grid columns. In this sample project, the GridControl contains MemoEdit, CheckEdit, and PopupImageEdit editors:

image

Here is the output in print preview mode:

image

PrintCustomRows

View File: PrintCustomRows/MainWindow.xaml

This project uses the PrintRowTemplate property to fully alter the layout of printed rows. This project also customizes column headers (PrintHeaderTemplate) and our WPF Data Grid’s total summary panel (PrintFooterTemplate).

Here is the layout used for this example:

image

And here is the print preview for this particular example:

image

PrintCustomGroupRows

View File: PrintCustomGroupRows/MainWindow.xaml

This project uses the PrintGroupRowTemplate property to display images in printed group rows. It also removes parentheses from group summaries.

image

Here’s the print preview for this particular example:

image

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Use our WPF GridControl's styles and templates to customize the appearance of printed or exported (WYSIWYG mode) content.

Topics

Resources

License

Stars

Watchers

Forks