Appframe Knowledge Base

1 hits

How to customise Print/Preview for chart, grid etc.

Imports DevExpress.XtraPrinting

Private Sub SimpleButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleButton1.Click
	Dim vPrintingSystem As PrintingSystem = New PrintingSystem()
	Dim vLink As PrintableComponentLink = New PrintableComponentLink(vPrintingSystem)
	vLink.Component = Me.ChartControl1 ' Set to your chart / grid control
	vLink.Landscape = True
	Me.ChartControl1.OptionsPrint.SizeMode = DevExpress.XtraCharts.Printing.PrintSizeMode.Zoom
End Sub

win · Perma link post comment Posted by: Peter Øren (13-jan-2012)