Skip to content

Latest commit

 

History

History

CustomHeaderFooter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Custom printing header and footer sample

This sample demonstrates how to customize the header and footer of the priniting in SfDiagram control.

Header and Footer for the print preview window can be enabled by using the PageHeaderHeight and PageFooterHeight properties in the PrintSettings property of PrintingService class of WPF Diagram (SfDiagram). The Appearance of the footer and header text can be modified by using the PageHeaderTemplate and PageFooterTemplate properties.

Documentation: https://help.syncfusion.com/wpf/diagram/printing#header-and-footer

Project pre-requisites

To run this application, you need to have the below two in your system

Deploying and running the sample

  • To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

KB article - Custom printing header and footer sample