XY Chart NET 3 Control Reference
PrintPreviewButtonSelected Event
This event is generated whenever the user selects the Print Preview toolbar button (see Toolbar).   Use this event to perform operations specific to whenever the Print Preview toolbar button is selected.
Syntax
[Visual Basic]
Event PrintPreviewButtonSelected()
[C#]
PrintPreviewButtonSelected()
[C++]
PrintPreviewButtonSelected()
       
Example
' 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
                       
                       
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.