请看看这段teechart在asp中应用的程序,怎么VBScript语句给teechart附不上值(20分)

  • 主题发起人 主题发起人 llk
  • 开始时间 开始时间
L

llk

Unregistered / Unconfirmed
GUEST, unregistred user!
请看看这段teechart在asp中应用的程序,怎么VBScript语句给teechart附不上值
<HTML>
<HEAD><TITLE>TeeChart JPEG Chart Page</TITLE></HEAD>
<BODY>
<!-- Create the ActiveX object at the server -->
<OBJECT ID="TChart1" WIDTH=450 HEIGHT=290
codebase="TeeChart.ocx#version=4,0,0,7"
CLASSID="CLSID:008BBE7E-C096-11D0-B4E3-00A0C901D681"
Codebase>
</OBJECT>

<SCRIPT Language="VBScript" RUNAT=Server>
SUB FillSave()
Set TChart1 = CreateObject("TeeChart.TChart")
TChart1.Header.Text.Add "测试应用"
TChart1.AddSeries(1)
TChart1.Series(0).Clear
TChart1.Series(0).Add 100, "Apples", RGB(255,0,0)
TChart1.Series(0).Add 300, "Pears", RGB(255,255,255)
TChart1.Series(0).Add 200, "Bananas", RGB(255,255,0)

END SUB
</SCRIPT>

</BODY>
</HTML>
 
关注此问题!帮你往前提!
 
没接触过asp。顶
 
还是没人来讨论?再帮提!
 
试试
<SCRIPT Language="VBScript" RUNAT=Server>
SUB FillSave()
Set TChart1 =document.all.TChart1
TChart1.Header.Text.Add "测试应用"
TChart1.AddSeries(1)
TChart1.Series(0).Clear
TChart1.Series(0).Add 100, "Apples", RGB(255,0,0)
TChart1.Series(0).Add 300, "Pears", RGB(255,255,255)
TChart1.Series(0).Add 200, "Bananas", RGB(255,255,0)

END SUB
 
同意test7

<SCRIPT Language="VBScript" RUNAT=Server>
dim TChart1
Set TChart1 = Server.CreateObject("TeeChart.TChart")
TChart1.removeallseries
'设置标题
TChart1.Header.Text.Clear
TChart1.Header.Text.Add ("chart测试")
TChart1.Header.Font.Color=RGB(22,5,120)
'TChart1.Header.Font.Size=2  



'赋值
TChart1.AddSeries(1)
TChart1.Series(0).Clear
TChart1.Series(0).Add 100, "Apples", RGB(111,166,196)
TChart1.Series(0).Add 300, "Pears", RGB(101,122,205)
TChart1.Series(0).Add 200, "Bananas", RGB(255,255,0)


' 把图形文件名转化成本地绝对路径表达方式
JpegLocalFile = Server.Mappath( "pic.jpg" )

' 把制定的图形生成、存入本指定文件
TChart1.Export.SaveToJPEGFile JpegLocalFile, False, jpegBestQuality, 100,_
TChart1.Width, TChart1.Height

Response.Write("<img src=pic.jpg>")
</SCRIPT>
 
多人接受答案了。
 
后退
顶部