XY Chart NET 3 Control Reference > Events > PrintPreviewButtonSelected Event |
[Visual Basic] Event PrintPreviewButtonSelected() |
[C#] PrintPreviewButtonSelected() |
[C++] PrintPreviewButtonSelected() |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Private Sub XYChartNETCtl1_PrintPreviewButtonSelected() Handles XYChartNETCtl1.PrintPreviewButtonSelected 'Update the chart control's printer settings With XYChartNETCtl1.PrintSettings .Color = False .Orientation = poLandscape .NumCopies = 1 .DocumentName = "XYChartNET 1" .LeftMargin = 50 .TopMargin = 100 .ShowDialog = False End With End Sub