<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME=
GENERATOR
Content=
Microsoft Visual Studio
>
</HEAD>
<BODY>
<OBJECT classid=
clsid:
A
B
C
BA
A
D
B
F
F
D
id=MSChart
VIEWASTEXT height=
width=
></OBJECT>
<SCRIPT LANGUAGE=
VBScript
>
<%
Set objConn = Server
CreateObject(
ADODB
Connection
)
objconn
ConnectionString =
DSN=AdvWorks
objConn
Open
Set objRS = Server
CreateObject(
ADODB
Recordset
)
objRS
ActiveConnection = objConn
objRS
CursorLocation =
objRS
Open(
select OrderDetailID
UnitPrice from Order_Details
)
i=
Response
Write
Const num =
& objrs
RecordCount & vbCr
Response
Write
Dim ID(
& objrs
RecordCount &
)
& vbCr
Response
Write
Dim Details(
& objrs
RecordCount &
)
& vbCr
Do While Not objRS
EOF
Response
Write(
ID(
& i &
)=
& objRS(
) &
& Chr(
))
Response
Write(
Details(
& i &
)=
& objRS(
) &
& Chr(
))
i=i+
objRS
MoveNext
Loop
%>
MSChart
TitleText =
Example
MSChart
RowCount =
MSChart
ColumnCount = num
for i =
to num
MSChart
Column = i
MSChart
ColumnLabel = ID(i)
next
MSChart
chartType =
是二維餅圖
擬合曲線我還不知道怎麼畫
MSChart
ShowLegend = True
MSChart
ChartData = Details
</SCRIPT>
</BODY>
</HTML>
From:http://tw.wingwit.com/Article/program/net/201311/11538.html