Printing Opengl Chart
Posted: Wed Aug 31, 2011 1:56 am
I am having some problems printing the opengl chart. Nothing will display in the print preview.
I am using the following code:
Sub InitOpengl()
Points1.Chart.Aspect.View3D = True
Points1.Chart.Walls.Visible = True
Points1.Chart.Aspect.Orthogonal = False
Points1.Chart.Aspect.Chart3DPercent = 100
Points1.Chart.Aspect.Zoom = 50
Points1.Chart.Aspect.View3D = True
Rotate1.Active = True
Openglchart1 = New Steema.TeeChart.Drawing.GL.TeeOpenGL(TChart1.Chart)
Openglchart1.Active = True
Openglchart1.AmbientLight = 60
Openglchart1.Canvas.SmoothingMode = True
End Sub
Private Sub PrintDiagramToolStripMenuItem_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles PrintDiagramToolStripMenuItem.Click
TChart1.Printer.Preview()
End Sub
I am using the following code:
Sub InitOpengl()
Points1.Chart.Aspect.View3D = True
Points1.Chart.Walls.Visible = True
Points1.Chart.Aspect.Orthogonal = False
Points1.Chart.Aspect.Chart3DPercent = 100
Points1.Chart.Aspect.Zoom = 50
Points1.Chart.Aspect.View3D = True
Rotate1.Active = True
Openglchart1 = New Steema.TeeChart.Drawing.GL.TeeOpenGL(TChart1.Chart)
Openglchart1.Active = True
Openglchart1.AmbientLight = 60
Openglchart1.Canvas.SmoothingMode = True
End Sub
Private Sub PrintDiagramToolStripMenuItem_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles PrintDiagramToolStripMenuItem.Click
TChart1.Printer.Preview()
End Sub