|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
因为ASP脚本语言非常简单,因此其代码也简单易懂,结合HTML代码,可快速地完成网站的应用程序。还无法完全实现一些企业级的功能:完全的集群、负载均横。控件|图表|详解在ASP中使用OWC(OfficeWebComponents)控件可轻松完成各类图表功效,如饼图,簇状柱型图,折线图等。
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]鄙人面的代码中我具体的给出了饼图,簇状柱型图,折线图的利用办法。OWC的更多功效,属性可列入MSOWCVBA.chm匡助文件(在office2000的文件夹下人人本人找)。
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]testOWC.asp
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN">
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<html>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<head>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<title>ASP中使用OWC控件完成图表功效详解</title>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]</head>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<body>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<%
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]上面测试的是一个产物销量图
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]MX1="A产物,B产物,C产物,D产物"数据项目名数组(给出测试数据,实践用的时分从数据库读取用","分开)
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]MX2="50,60,20,80"数据项目值数组
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]Datestr="2005-3-24,2005-3-25,2005-3-26,2005-3-27,2005-3-28"日期
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]SQARXLstr="50,100,20,80,89"A产物2005-3-24至2005-3-28的销量
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]SQARXLstr=SQARXLstr&","&"40,60,20,90,70"B产物2005-3-24至2005-3-28的销量
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]SQARXLstr=SQARXLstr&","&"20,50,55,25,60"C产物2005-3-24至2005-3-28的销量
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]SQARXLstr=SQARXLstr&","&"80,20,75,58,100"D产物2005-3-24至2005-3-28的销量
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]%>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<br>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<center><objectid="ChartSpace1"classid="CLSID:0002E500-0000-0000-C000-000000000046"style="width:95%;height:400"></object></center>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<br>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<center><objectid="ChartSpace2"classid="CLSID:0002E500-0000-0000-C000-000000000046"style="width:95%;height:400"></object></center>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<br>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<center><objectid="ChartSpace3"classid="CLSID:0002E500-0000-0000-C000-000000000046"style="width:95%;height:400"></object></center>
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]<scriptlanguage="vbscript">
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]SubWindow_OnLoad()
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]------------------饼图-------------------------------------------------------------
[img=11align=topstyle=,16alt=]http://www.163design.net/a/UploadFiles_9356/200607/200674144553798.gif[/img]</p>无法实现跨操作系统的应用。当然这也是微软的理由之一,只有这样才能发挥ASP最佳的能力。可是我却认为正是Windows限制了ASP,ASP的概念本就是为一个能让系统运行于一个大的多样化环境而设计的; |
|