Link to home
Start Free TrialLog in
Avatar of zeroimpact
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-F6F2-101A-A3C9-08002B2F49FB"
    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
Avatar of tkalchev
tkalchev
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TRUENEUTRAL
TRUENEUTRAL

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.
Avatar of zeroimpact

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