How to Print the PivotChart

13 Jul 20261 minute to read

The PivotChart has built-in support to print the pivotal data. This can be achieved by using the PrintDocument method available in the PrintDocument extension of the PivotChart component.

PrintDialog printDialog1 = new System.Windows.Forms.PrintDialog();
printDialog1.Document = this.pivotChart1.PrintDocument;
if (printDialog1.ShowDialog() == DialogResult.OK)
{
    this.pivotChart1.PrintDocument.Print();
}
Dim printDialog1 As New System.Windows.Forms.PrintDialog()
printDialog1.Document = Me.pivotChart1.PrintDocument
If printDialog1.ShowDialog() = DialogResult.OK Then
    Me.pivotChart1.PrintDocument.Print()
End If