Defines a class for printing charts.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public class ChartPrinter : PrintDocument |
Visual Basic
![]() |
---|
Public Class ChartPrinter |
Create an instance of the ChartPrinter class if you want to print a chart. Use the Chart property to set the chart to print. Landscape specifies the orientation of the page. Call Print to start printing.
The following code snippet demonstrates printing a PieChart called pieChart1:
C#
![]() |
---|
ChartPrinter chartPrinter = new ChartPrinter(); chartPrinter.Chart = pieChart1; chartPrinter.Landscape = false; chartPrinter.Print(); |
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Drawing.Printing.PrintDocument
MindFusion.Charting.WinForms.ChartPrinter