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

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

使用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>




主站蜘蛛池模板: 欧美一级高清视频在线播放 | 日本中文字幕第一页 | 伊人精品在线 | 天天干天天天天 | 午夜在线视频观看版 | 最新国语露脸精品国产 | 四虎影永久在线观看网址 | 日韩在线三级 | 自拍视频啪 | 欧美性www| 伊人a.v在线 | 日本高清视频色wwwwww色 | 亚洲 欧美 日韩在线综合福利 | 天天干天天拍 | 日韩精品亚洲人成在线观看 | 中文字幕在线有码高清视频 | 四虎永久在线免费观看 | 在线播放国产色视频在线 | 亚洲视频在线观看 | 四虎免费在线观看视频 | 青青色在线视频 | 欧美亚洲综合在线观看 | 最近免费观看高清韩国日本大全 | 亚洲va中文va欧美va爽爽 | 五月婷婷爱 | 青青青久在线视频免费观看 | 婷婷热 | 午夜在线播放免费人成无 | 日韩在线观看免费 | 特级欧美老少乱配 | 香蕉精品在线 | 日本欧美一区二区三区片 | 亚洲成a人v欧美综合天堂麻豆 | 青草视频在线观看国产 | 日本aa在线观看 | 青草久久影院 | 天天插天天搞 | 日本网络视频www色高清免费 | 午夜色a大片在线观看免费 午夜骚片 | 日产精品卡二卡三卡四卡乱码视频 | 日韩 欧美 亚洲 中文字幕 |