OnGetSeriesMark on VBScript

TeeChart for ActiveX, COM and ASP
Post Reply
Emerald
Newbie
Newbie
Posts: 7
Joined: Thu Dec 02, 2004 5:00 am

OnGetSeriesMark on VBScript

Post by Emerald » Wed Dec 27, 2006 3:36 pm

Hi, i have a standart
"Sub Chart1_OnGetSeriesMark(SeriesIndex,ValueIndex, MarkText)"
that is fired after "sub window_onload()" - that fills a chart, located inside HTML tamplate, using "Chart1.Export.asNative.SaveToStream(True)"
on the vb.6 code side (iis app), and "TChart2.Import.LoadFromURL(temp)"
on the HTML side. (sending a sream...).

I can see that the OnGetSeriesMark is beeing fired (when i put a mesgbox then it is shown..) but i can't actually preform the
MarkText = "My value" or at least it does not effect the mark that are beeing shown on the chart.

is there a specific or different way to initalize this event? when working in Script ?, maybe use a stream?

Also - I looked at tutorial 8 so I would like alittle guideness if possible...?

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Dec 28, 2006 9:03 am

Hi Emerald,

if you want to do is export an image to the browser from your ASP file then you can use TeeChart events in ASP using VBUserControls. There's an example of how to do this under:
C:\Program Files\TeeChart Pro v7 ActiveX Control\Examples\Internet Explorer\ASPHome.htm -> Why Script in ASP?
The source code for the VBUserControl is under:
C:\Program Files\TeeChart Pro v7 ActiveX Control\Examples\Visual Basic\Visual Basic 5 & 6\ActiveX Control

Post Reply