zeroimpact
asked on
Passing parameters to an ActiveX Form (ocx)
Hi ,
can one pass parameters to an ActiveX Form (ocx) when it's embeded in a web page ?
i.e.
ActiveXApplication.ocx /myparam1
so when you embed the app in the web page and when the page loads up you can pass the ocx specific parameters ?
<OBJECT ID="Test" WIDTH=32 HEIGHT=32
CLASSID="CLSID:F9043C85-F6 F2-101A-A3 C9-08002B2 F49FB"
CODEBASE="http://localhost/ActiveXApplication.ocx
#Version=1,0,0,0 /myparam">
</OBJECT>
I need to dynamicly pass the ocx parameters to initialise it with settings every time the web page is executed. I do not know if the above
is possable or if there is a different solution ??
thanks
can one pass parameters to an ActiveX Form (ocx) when it's embeded in a web page ?
i.e.
ActiveXApplication.ocx /myparam1
so when you embed the app in the web page and when the page loads up you can pass the ocx specific parameters ?
<OBJECT ID="Test" WIDTH=32 HEIGHT=32
CLASSID="CLSID:F9043C85-F6
CODEBASE="http://localhost/ActiveXApplication.ocx
#Version=1,0,0,0 /myparam">
</OBJECT>
I need to dynamicly pass the ocx parameters to initialise it with settings every time the web page is executed. I do not know if the above
is possable or if there is a different solution ??
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You could write the vlues out to a text file that the ocx looked for and ran each time it was initialized. Not the best solution, but it might work.
ASKER
Thanks tkalchev,
That did the trick, by Creating a P1, P2 and P3 as Published Interfaces as set properties in the code and then passing in the params
That did the trick, by Creating a P1, P2 and P3 as Published Interfaces as set properties in the code and then passing in the params