日期:2014-05-17  浏览次数:20726 次

ASP中调用ocx 急~~~~~~~~~~~~~~~~~~~~~~
我想在ASP中调用VB编写的ocx   如何做到?
并且我要调用其中的方法和属性又如何做到?????

------解决方案--------------------
<BODY topmargin= "0 " leftmargin= "0 " marginheight= "0 " marginwidth= "0 " onload= "VBScript:Init ">
<Table width= "100% " height= "100% "> <tr>
<td> <OBJECT id=PowerTools_Office codeBase=PowerTools.CAB height= "100% " width= "100% " classid=clsid:00460182-9E5E-11D5-B7C8-B8269041DD58 >
<PARAM NAME= "_ExtentX " VALUE= "25003 ">
<PARAM NAME= "_ExtentY " VALUE= "14764 ">
<PARAM NAME= "BorderColor " VALUE= "-2147483632 ">
<PARAM NAME= "BackColor " VALUE= "-2147483643 ">
<PARAM NAME= "ForeColor " VALUE= "-2147483640 ">
<PARAM NAME= "TitlebarColor " VALUE= "-2147483632 ">
<PARAM NAME= "TitlebarTextColor " VALUE= "-2147483628 ">
<PARAM NAME= "BorderStyle " VALUE= "1 ">
<PARAM NAME= "Titlebar " VALUE= "1 ">
<PARAM NAME= "Toolbars " VALUE= "1 ">
</OBJECT> </td> </tr> </table>
<OBJECT ID= "PowerTools_NetworkHTTP "
CLASSID= "CLSID:AD131AB5-4016-460C-BF63-39CAFEC4F03A "
CODEBASE= "PowerTools.CAB#version=1,0,0,22 ">
</OBJECT>
<OBJECT ID= "PowerTools_System "
CLASSID= "CLSID:2F3C443C-D911-40BE-A93A-AA317F0BC340 "
CODEBASE= "PowerTools.CAB#version=1,0,0,22 ">
</OBJECT>
</BODY>


=======================================================================
<PARAM NAME= "Toolbars " VALUE= "1 ">
这里的name就是你OCX里写的方法或属性。