Skip to content

Export the contents of our WPF GridControl with specified page headers and footers.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-data-grid-add-page-headers-and-footers-to-exported-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Data Grid - Add Page Headers and Footers to Exported Data

This example exports the contents of our WPF GridControl with specified page headers and footers.

image

WYSIWYG Technique

image

  1. Create custom templates for headers and footers.
  2. Create a new instance of the PrintableControlLink class.
  3. Assign the templates to the PageHeaderTemplate and PageFooterTemplate properties.
  4. Print or export the WPF GridControl in WYSIWYG mode.

Refer to the following help topic for more information: WYSIWYG Export.

Data-Aware Technique

image

  1. Create a new instance of the XlsxExportOptionsEx class.
  2. Handle both XlsxExportOptionsEx.CustomizeSheetHeader and XlsxExportOptionsEx.CustomizeSheetFooter events.
  3. In the event handlers, specify custom page headers and footers.
  4. Export the WPF GridControl in XLSX format.

Refer to the following help topic for more information: Data-Aware Export.

Files to look at

Documentation

More Examples

Does this example address your development requirements/objectives?

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

About

Export the contents of our WPF GridControl with specified page headers and footers.

Topics

Resources

License

Stars

Watchers

Forks