XY Chart NET 3 Control Reference
PrintSettings Property

Use this property to return/set values that determines the chart's printing characteristics.   PrintSettings uses the PrintSettings Class set of properties for its characteristics.

Syntax
[Visual Basic]
Property PrintSettings() As C_PrintSettings
[C#]
XYChartNet.XYChartNETCtl.C_PrintSettings XYChartNETCtl.PrintSettings
[C++]
property XYChartNet::XYChartNETCtl::C_PrintSettings ^ XYChartNet::XYChartNETCtl::PrintSettings
       
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

With XYChartNETCtl1.PrintSettings
   .Color = False             'Print in black/white
   .Orientation = poLandscape
   .NumCopies = 1
   .DocumentName = "Chart 1"
   .LeftMargin = 50           '0.5 inch left margin
   .RightMargin = 50          '0.5 inch right margin
   .TopMargin = 100           '1 inch top margin
   .BottomMargin = 100        '1 inch bottom margin
   .ShowDialog = True         'Display Print dialog
End With
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1.PrintSettings.Orientation = XYChartNet.XYChartNETCtl.PrintOrientationOptions.poLandscape;
XYChartNETCtl1.PrintSettings.NumCopies = 1;
XYChartNETCtl1.PrintSettings.DocumentName = "Chart 1";
XYChartNETCtl1.PrintSettings.Color = false;             //Print in black/white
XYChartNETCtl1.PrintSettings.LeftMargin = 50;           //0.5 inch left margin
XYChartNETCtl1.PrintSettings.RightMargin = 50;          //0.5 inch right margin
XYChartNETCtl1.PrintSettings.TopMargin = 100;           //1 inch top margin
XYChartNETCtl1.PrintSettings.BottomMargin = 100;        //1 inch bottom margin
XYChartNETCtl1.PrintSettings.ShowDialog = true;         //Display Print dialog
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1->PrintSettings->Orientation = XYChartNet::XYChartNETCtl::PrintOrientationOptions::poLandscape;
XYChartNETCtl1->PrintSettings->NumCopies = 1;
XYChartNETCtl1->PrintSettings->DocumentName = "Chart 1";
XYChartNETCtl1->PrintSettings->Color = false;             //Print in black/white
XYChartNETCtl1->PrintSettings->LeftMargin = 50;           //0.5 inch left margin
XYChartNETCtl1->PrintSettings->RightMargin = 50;          //0.5 inch right margin
XYChartNETCtl1->PrintSettings->TopMargin = 100;           //1 inch top margin
XYChartNETCtl1->PrintSettings->BottomMargin = 100;        //1 inch bottom margin
XYChartNETCtl1->PrintSettings->ShowDialog = true;         //Display Print dialog
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.