i have moved datamark in a certain angle with background and different font color,name and save tee file
when i reopend the tee file datamark has been change , it is not kept in the same angle
how can i save datamark position ? and also how to get the position of datamark
aravind
saving data marks ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Aravind,
It works fine for me here using v7.0.0.8 and the code below. Could you please modify it or send us an example we can run "as-is" to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Thanks in advance.
It works fine for me here using v7.0.0.8 and the code below. Could you please modify it or send us an example we can run "as-is" to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Code: Select all
Private Sub Command1_Click()
TChart1.Export.asNative.SaveToFile "e:\temp\markangle.tee", True
End Sub
Private Sub Command2_Click()
TChart1.ClearChart
TChart1.Import.LoadFromFile "e:\temp\markangle.tee"
End Sub
Private Sub Form_Load()
TChart1.Series(0).FillSampleValues 10
End Sub
Private Sub TChart1_OnGetSeriesMark(ByVal SeriesIndex As Long, ByVal ValueIndex As Long, MarkText As String)
With TChart1.Series(SeriesIndex).Marks
If ValueIndex = 5 Then
.Item(ValueIndex).Color = vbBlue
.Item(ValueIndex).Font.Size = 15
.Angle = 45
Else
.Angle = 0
End If
End With
End Sub
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |