delphi5 中:
file->close;
file->new...select activex library in the page of activex
file->new... select active server object in the page of activex
可指定coclassname :myobj,
在project1.tlb中为imyobj添加mymethod方法,并为其添加代码,如:
response.write('<html><head><title>demo page</title></head><body><p>this is my asp object demo</p><br></body></html>');
compile and register activex server
最后生成一asp file:
<HTML>
<BODY>
<TITLE> Testing Delphi ASP </TITLE>
<CENTER>
<H3> You should see the results of your Delphi Active Server method below </H3>
</CENTER>
<HR>
<% Set DelphiASPObj = Server.CreateObject("Project1.myobj")
DelphiASPObj.mymethod
%>
<HR>
</BODY>
</HTML>
-------------------------------------------------------------------
另:如你只是想在web page 中显示chart 最懒的办法是用cgiexpert
不知我说清楚了吗?