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
To run this application, you need to have the below two in your system
- Visual Studio 2019
- Syncfusion.SfDiagram.WPF nuget package. To install the package using NuGet Package Manager, refer this link.
- 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