MindFusion WinForms Programmer's Guide
ChartPrinter Class
Remarks See Also
 





Defines a class for printing charts.

Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms

 Syntax

C#  Copy Code

public class ChartPrinter : PrintDocument

Visual Basic  Copy Code

Public Class ChartPrinter
    Inherits PrintDocument

 Remarks

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.

 Example

The following code snippet demonstrates printing a PieChart called pieChart1:

C#  Copy Code
ChartPrinter chartPrinter = new ChartPrinter();
chartPrinter.Chart = pieChart1;
chartPrinter.Landscape = false;
chartPrinter.Print();

 Inheritance Hierarchy

System.Object
    System.MarshalByRefObject
        System.ComponentModel.Component
            System.Drawing.Printing.PrintDocument
                MindFusion.Charting.WinForms.ChartPrinter

 See Also

ChartPrinter Members
MindFusion.Charting.WinForms Namespace