teechart & asp

TeeChart for ActiveX, COM and ASP
Post Reply
gong
Newbie
Newbie
Posts: 14
Joined: Wed May 18, 2005 4:00 am
Location: China
Contact:

teechart & asp

Post by gong » Fri Apr 28, 2006 3:49 am

How can I make teechart's series respond mouse event in asp, and show the x/y value?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 28, 2006 7:53 am

Hi gong,

You can do something like the code below or as in the ASP Server Examples included with TeeChart's installation and add a MarkTips tool to that chart.

If necessary I can send you the full example below.

Code: Select all

<SCRIPT LANGUAGE="VBScript">
<!--

Sub Window_onload()

 'sets up Chart to print from IE's print option
 TChart1.Environment.IEPrintWithPage=True

 TChart1.AddSeries(0)
 set s=TChart1.Series(0)
 s.FillSampleValues(7)

 TChart1.Tools.Add(8)
end sub

Sub TChart1_OnClickSeries(SeriesIndex, ValueIndex, Button, Shift, X, Y)
	TChart1.StopMouse
	if TChart1.Series(SeriesIndex).PointLabel(ValueIndex) <> "" then
		msgbox TChart1.Series(SeriesIndex).PointLabel(ValueIndex)
	else
		msgbox TChart1.Series(SeriesIndex).YValues.Value(ValueIndex)
	end if
end sub

-->
</SCRIPT>
<html><head><LINK REL=STYLESHEET TYPE="text/css" HREF="style.css"></head>
<BODY bgcolor=#ffffff>
<p>
<font face="Arial" color="#004080"><em><big><strong>Mark tip tool Example</strong></big></em></font>
<H3></H3>
<P></P>

<p>
    <SCRIPT LANGUAGE="VBScript">
<!--
Sub TChart1_OnDblClick()
  TChart1.ShowEditor
end sub
-->
    </SCRIPT>

<OBJECT id=TChart1 height=290 width=550 
classid=CLSID:FAB9B41C-87D6-474D-AB7E-F07D78F2422E><PARAM NAME="Base64" VALUE="VFBGMAtUQ2hhcnRDaGFydAAETGVmdAIAA1RvcAIABVdpZHRoAyYCBkhlaWdodAMiARJUaXRsZS5U
ZXh0LlN0cmluZ3MBBghUZWVDaGFydAAAAAAAAAACAAAAAP////8="></OBJECT>
 
</p>
</BODY>
</html>
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

gong
Newbie
Newbie
Posts: 14
Joined: Wed May 18, 2005 4:00 am
Location: China
Contact:

thanks for your answer

Post by gong » Sun Apr 30, 2006 7:56 am

i want to use teechart write a .asp. it include ado, a few series. i can't distinguish it run at server or at client.
if you can send me the full code, i am waiting for you.
e-mail address: gongdongwu@tom.com

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue May 02, 2006 7:57 am

Hi gong,

I've just sent you the example you requested. Regarding ADO in an asp application with TeeChart, please have a look at the ASP Server Examples included with TeeChart installation, at its program group and the tutorials also available there.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

gong
Newbie
Newbie
Posts: 14
Joined: Wed May 18, 2005 4:00 am
Location: China
Contact:

Post by gong » Fri May 12, 2006 4:01 am

hi Narcís,
In your code, the teechart run in client. Can't call the web from other pc no installing teechart. How can I call it in the pc in which I don't install the teechart?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri May 12, 2006 8:03 am

Hi gong,

If TeeChart is installed in the server you will also need to download its cabinet to the client. For more information about that please read Tutorial 18 - TeeChart runtime installation requirements.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply