This sample shows you how to print a pivot grid. It derives a PivotGridPrintDocumentAdv class in order to handle the printing pivot grid.
Features:
This feature has been overridden the PivotGridPrintDocumentAdv from Syncfusion.GridHelperClasses.Windows.
The pivot grid visual style color will be automatically applied in pivot grid print.
Headers and footers that can be added with the events.
Interactive Features:
Declare an object for the class PivotGridPrintDocumentAdv with its constructor parameter as the pivot grid control object.
PivotGridPrintDocumentAdv pd = new PivotGridPrintDocumentAdv(this.pivotGridControl1); pd.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(25, 25, 25, 25); PrintPreviewDialog previewDialog = new PrintPreviewDialog(); previewDialog.Document = pd; previewDialog.Show;
The following is an image of the print preview dialog box.