六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

使用OWC畫圖的例子

[摘要]<% Option Explicit %><HTML><HEAD><TITLE>利用OWC畫圖的例子</TITLE><!-- #include virtual="/include/adovbs.inc" --&g...

<% Option Explicit %>
<HTML>
<HEAD>
<TITLE>利用OWC畫圖的例子</TITLE>
<!-- #include virtual="/include/adovbs.inc" -->
<%
Function ExportChartToGIF(objCSpace, strAbsFilePath, strRelFilePath)
    Dim strFileName
    Randomize
    strFileName = Timer & Rnd & ".gif"
    objCSpace.ExportPicture strAbsFilePath & "\" & strFileName, "gif", 600, 350
    ExportChartToGIF = strRelFilePath & "/" & strFileName
End Function

Sub CleanUpGIF(GIFpath)
    Dim objFS
    Dim objFolder
    Dim gif
    set objFS = Server.CreateObject("Scripting.FileSystemObject")
    set objFolder = objFS.GetFolder(GIFpath)
    for each gif in objFolder.Files
        if instr(gif.Name, ".gif") > 0 and DateDiff("n", gif.DateLastModified, now) > 10 then
            objFS.DeleteFile GIFpath & "\" & gif.Name, True
        end if
    next
    set objFolder = nothing
    set objFS = nothing
End Sub

%>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<%
dim objChartSpace
dim objChart
dim objSeries
dim objConn
dim objRS
dim c
dim series
dim strChartAbsPath
dim strChartRelPath
dim strChartFile
strChartAbsPath = Server.MapPath("/mypath/temp")
strChartRelPath = "temp"

set objChartSpace = Server.CreateObject("OWC.Chart")
set objChart = objChartSpace.Charts.Add()
set c = objChartSpace.Constants

objChart.Type = c.chChartTypeLineMarkers
objChart.HasLegend = True

set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "provider=sqloledb;data source=myserver;initial catalog=testdb;user id=myuid;password=mypswd;"
set objRS = Server.CreateObject("ADODB.Recordset")
set objRS.ActiveConnection = objConn
objRS.CursorType = adOpenStatic
objRS.CursorLocation = adUseClient
objRS.Open "select * from testscore order by test"
set objChartSpace.DataSource = objRS
objChart.SetData c.chDimSeriesNames, 0, "student"
for each objSeries in objChart.SeriesCollection
    objSeries.SetData c.chDimCategories, 0, "test"
    objSeries.SetData c.chDimValues, 0, "score"
next

for each axis in objChart.Axes
    axis.HasTitle = True
    if axis.Type = c.chCategoryAxis then
        axis.Title.Caption = "Test"
    else
        axis.Title.Caption = "Score"
    end if
next

objChart.SeriesCollection(2).Interior.Color = "red"
objChart.SeriesCollection(2).Line.Color = "red"

strChartFile = ExportChartToGIF(objChartSpace, strChartAbsPath, strChartRelPath)
Response.Write "<IMG SRC=""" & strChartFile & """>" & "<P>"
CleanUpGIF strChartAbsPath

objRS.Close
set objRS = nothing
set objConn = nothing
set objSeries = nothing
set objChart = nothing
set objChartSpace = nothing
%>
</BODY>
</HTML>




主站蜘蛛池模板: 婷婷色网站 | 天啪天天天天拍天天碰 | 欧洲午夜视频 | 欧美视频在线播放 | 日韩福利在线观看 | 日韩欧美一区二区三区久久 | 五月激情啪啪网 | 四虎影视永久免费观看网址 | 四虎成人在线视频 | 三级主播 | 色综合久久天天综线观看 | 深爱五月激情网 | 日韩推理片在线免费看网站 | 日本天天射 | 欧美一区2区三区4区贰佰公司 | 欧美一区二区三区美人 | 欧美一区二区三区黄色 | 日韩国产成人精品视频 | 亚洲黄色一区二区 | 日本视频中文字幕 | 日本高清视频在线www色下载 | 天天做天天添天天谢 | 亚洲国产一区在线观看 | 天天插天天透天天狠 | 欧美专区第一页 | 伊人色播 | 日日日日人人人夜夜夜2017 | 在线免费观看亚洲 | 夜夜爽一区二区三区精品 | 天天摸天天澡天天碰天天弄 | 日韩黄色中文字幕 | 天天噜日日噜 | 亚洲成a人片777777久久 | 在线综合色 | 亚洲人成网站999久久久综合 | 五月婷丁香 | 一级黄色在线观看 | 一级做a爰片久久免费 | 人体自拍亚洲综合图区 | 武则天一级淫片免费放 | 日韩视频免费观看 |