Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.v4.4 Assembly / Xceed.Chart Namespace / PrintManager Class / Copies Property
Example


In This Topic
    Copies Property
    In This Topic
    The number of copies to print.
    Syntax
    'Declaration
     
    Public Property Copies As Short
    'Usage
     
    Dim instance As PrintManager
    Dim value As Short
     
    instance.Copies = value
     
    value = instance.Copies
    public short Copies {get; set;}
    Remarks
    The print manager fires an event called BeforePrintPage which you can use to change the chart before printing a page. This feature is very useful when you have to print charts with enabled axis paging.
    Example
    The following example prints a two copies of the chart.
    ArrayList arrPrinters = new ArrayList();
     int defaultPrinter = ChartControl.PrintManager.EnumerateInstalledPrinters(arrPrinters);
     
     if (defaultPrinter != -1)
     {
       ChartControl.PrintManager.PrinterName = arrPrinters[defaultPrinter].ToString();
       ChartControl.PrintManager.Copies = 2;
       ChartControl.PrintManager.Print();
     }
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also