问题描述
嗨Michal,
我浏览了您的文章创建.NET ActiveX"并创建了部分运行的应用程序.它在"document.ActiveXControl.Open();"处给我错误.第一行document.ActiveXControl.MyParam工作正常,我也可以使用alert()方法显示它.
函数OpenActiveX()
{
试试
{
document.ActiveXControl.MyParam =我在这里"; //将参数传递给ActiveX
< b> document.ActiveXControl.Open(); </b>//来自activeX的运行方法
}
catch(Err)
{
alert(Err.description);
}
}
在我的html页面中,我正在使用--
< object id ="ActiveXControl" name ="ActiveXControl" classid ="clsid:BBC30395-31BB-4f24-887F-6350F8FF88E1" VIEWASTEXT
codebase ="D:\ CVSLocal \ LaunchActiveX \ ActiveXControl \ ActiveXControl \ bin \ Debug \ ActiveXControl.dll></object>
我尝试创建Cab文件并将其添加到Web应用程序中,但是没有用.(可能是,使用vs-studio创建的cab文件是错误的),因此,我给出了整个路径而不是cab文件.
Hi Michal,
I have gone through your Article "Creating .NET ActiveX" and created application which is working partially.It gives me error at "document.ActiveXControl.Open();".The first line document.ActiveXControl.MyParam works fine and also i can display it using alert() method.
function OpenActiveX()
{
try
{
document.ActiveXControl.MyParam = "I am Here"; //Passing parameter to the ActiveX
<b>document.ActiveXControl.Open(); </b>//Running method from activeX
}
catch(Err)
{
alert(Err.description);
}
}
In my html page i am using code like --
<object id="ActiveXControl" name="ActiveXControl" classid="clsid:BBC30395-31BB-4f24-887F-6350F8FF88E1" VIEWASTEXT
codebase="D:\CVSLocal\LaunchActiveX\ActiveXControl\ActiveXControl\bin\Debug\ActiveXControl.dll></object>
I tried with creating Cab file and adding into the web application ,but it was not working.(Probably,the cab file created using vs-studio is wrong) so,Instead of cab file i have given entire path.
Can you please guide me?
推荐答案
这篇关于关于“创建.NET ActiveX".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!