S
sunys
Unregistered / Unconfirmed
GUEST, unregistred user!
一.问题:
用Active Object Server 生成一dbchart图形(价格走势图)。
,供ASP调用。要求其中数据库连接、查询sql语句、图形标题、图形文件名四个参数均为动态传入。要求在DELPHI6下完成。
二.ASP调用例子::(传入四个参数)
<HTML>
<BODY>
<TITLE> Testing Delphi ASP </TITLE>
<CENTER>
<H3> You should see the results of your Delphi Active Server method below </H3>
</CENTER>
<HR>
<%
sconn="Provider=SQLOLEDB.1;Password=ff123;Persist Security Info=True;User ID=sa;Initial Catalog=food;Data Source=AH-ZQF"
ssql="select y=trade_average,x=rtrim(rtrim(str(year,4,0)))+'-'+ltrim(rtrim(str(month,2,0))) from view_shengmonth_sum,tbl_foods where view_shengmonth_sum.fd_id=tbl_foods.fd_id and fd_name='特制晚粳米' and year='2003' and month>= '1' and month<='12' order by year,month"
sfile="my.wmf"
stitle="this is test"
Set DelphiASPObj = Server.CreateObject("Pdraw.mydraw")
response.write delphiaspobj
DelphiASPObj.draw_img sconn,ssql,stitle,sfile
%>
<HR>
</BODY>
</HTML>
到时候把数据表结构发过去,价格里面谈:
联系方式
QQ:76103472
EMAIL:Suny_20000@163.com
用Active Object Server 生成一dbchart图形(价格走势图)。
,供ASP调用。要求其中数据库连接、查询sql语句、图形标题、图形文件名四个参数均为动态传入。要求在DELPHI6下完成。
二.ASP调用例子::(传入四个参数)
<HTML>
<BODY>
<TITLE> Testing Delphi ASP </TITLE>
<CENTER>
<H3> You should see the results of your Delphi Active Server method below </H3>
</CENTER>
<HR>
<%
sconn="Provider=SQLOLEDB.1;Password=ff123;Persist Security Info=True;User ID=sa;Initial Catalog=food;Data Source=AH-ZQF"
ssql="select y=trade_average,x=rtrim(rtrim(str(year,4,0)))+'-'+ltrim(rtrim(str(month,2,0))) from view_shengmonth_sum,tbl_foods where view_shengmonth_sum.fd_id=tbl_foods.fd_id and fd_name='特制晚粳米' and year='2003' and month>= '1' and month<='12' order by year,month"
sfile="my.wmf"
stitle="this is test"
Set DelphiASPObj = Server.CreateObject("Pdraw.mydraw")
response.write delphiaspobj
DelphiASPObj.draw_img sconn,ssql,stitle,sfile
%>
<HR>
</BODY>
</HTML>
到时候把数据表结构发过去,价格里面谈:
联系方式
QQ:76103472
EMAIL:Suny_20000@163.com