Hi, i have a problem with set margins in TeePreviewPanel. he has only an event OnChangeMargins, but i do not know haw i can set margins. I need a Button "Set default margins". In tutorial and this forum i finded no solution. Thanks
I have a TeeChart Pro ActiveX v7.
TeePreviewPanel set Margins
Hi Mirosa,
you can change the margins using something like the following code :
you can change the margins using something like the following code :
Code: Select all
Private Sub Command1_Click()
With TChart1.Printer
.PrintProportional = False
.MarginLeft = 2
.MarginTop = 2
.MarginRight = 60
.MarginBottom = 60
End With
TeePreviewPanel1.AddChart TChart1
TeePreviewPanel1.Repaint
End Sub
Pep Jorge
http://support.steema.com
http://support.steema.com