passing parameters to OCX 
Author Message
 passing parameters to OCX

I have an OCX written inVB6 that is working fine.  I am trying to change it
so that i can pass one parameter to it from the HTML page.

So, I change the OBJECT tag to include on PARAM tag like
<OBJECT ID="ctlServerExplorer"
CLASSID="CLSID:0B482DCC-5D2A-45B2-932F-52BFE19B1A51"
CODEBASE="AdminAlertInterface.CAB#version=1,0,0,98">
<PARAM NAME="SoapServer" VALUE="testweb3">
</OBJECT>

Now the control still initializes and I can access the value of the
parameter within the UserControl_ReadProperties method.  However, the
control does not appear in the browser anymore.  If I take out the PARAM
tag, the control appears as expected.

Is there something else that I need to do within my implementation of
ReadProperties to get the Control to still appear in the browser?

--
Ryan Powers



Sat, 04 Sep 2004 02:08:27 GMT  
 passing parameters to OCX
Hello,
Try this
<OBJECT ID="ctlServerExplorer"
CLASSID="CLSID:0B482DCC-5D2A-45B2-932F-52BFE19B1A51"
CODEBASE="AdminAlertInterface.CAB#version=1,0,0,98" WIDTH = 500  HEIGHT =
500>
<PARAM NAME="SoapServer" VALUE="testweb3">
</OBJECT>

Without witch & height as standard param it will not display the activeX
control in browser.

Peter.



Quote:
> I have an OCX written inVB6 that is working fine.  I am trying to change
it
> so that i can pass one parameter to it from the HTML page.

> So, I change the OBJECT tag to include on PARAM tag like
> <OBJECT ID="ctlServerExplorer"
> CLASSID="CLSID:0B482DCC-5D2A-45B2-932F-52BFE19B1A51"
> CODEBASE="AdminAlertInterface.CAB#version=1,0,0,98">
> <PARAM NAME="SoapServer" VALUE="testweb3">
> </OBJECT>

> Now the control still initializes and I can access the value of the
> parameter within the UserControl_ReadProperties method.  However, the
> control does not appear in the browser anymore.  If I take out the PARAM
> tag, the control appears as expected.

> Is there something else that I need to do within my implementation of
> ReadProperties to get the Control to still appear in the browser?

> --
> Ryan Powers




Sun, 05 Sep 2004 04:23:31 GMT  
 passing parameters to OCX
Thanks you are absolutely correct.  Throughmuch hard work the other day.  I
figured out that when I pass in a param and Read it with my own
implementation of ReadProperties.  The height and width were reset to 0.  So
the resize and show methods would do nothing.  By resetting the height and
width within the ReadProperties.  It was solved.

And your answer is exactly the problem.   Thanks for the response.


Quote:
> Hello,
> Try this
> <OBJECT ID="ctlServerExplorer"
> CLASSID="CLSID:0B482DCC-5D2A-45B2-932F-52BFE19B1A51"
> CODEBASE="AdminAlertInterface.CAB#version=1,0,0,98" WIDTH = 500  HEIGHT =
> 500>
> <PARAM NAME="SoapServer" VALUE="testweb3">
> </OBJECT>

> Without witch & height as standard param it will not display the activeX
> control in browser.

> Peter.



> > I have an OCX written inVB6 that is working fine.  I am trying to change
> it
> > so that i can pass one parameter to it from the HTML page.

> > So, I change the OBJECT tag to include on PARAM tag like
> > <OBJECT ID="ctlServerExplorer"
> > CLASSID="CLSID:0B482DCC-5D2A-45B2-932F-52BFE19B1A51"
> > CODEBASE="AdminAlertInterface.CAB#version=1,0,0,98">
> > <PARAM NAME="SoapServer" VALUE="testweb3">
> > </OBJECT>

> > Now the control still initializes and I can access the value of the
> > parameter within the UserControl_ReadProperties method.  However, the
> > control does not appear in the browser anymore.  If I take out the PARAM
> > tag, the control appears as expected.

> > Is there something else that I need to do within my implementation of
> > ReadProperties to get the Control to still appear in the browser?

> > --
> > Ryan Powers




Sun, 05 Sep 2004 05:27:25 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. passing parameters to ocx control

2. passing parameters from html to ocx

3. Passing Byref parameter to an ocx method

4. Passing a parameter value using OCX

5. Passing Parameters to Crystal OCX

6. Passing parameter from Crystal OCX to a report that uses a stored procedure

7. Passing parameters via CR6 ocx -- kill prompt

8. Can not pass parameters to crystal32.ocx

9. Pass an Object (a Form) as a parameter to an OCX: possible

10. passing parameter to a parameter query

11. Passing Parameters to stored parameter queries using VB 5's Data Controls

12. passing optional parameters to the parameters collection

 

 
Powered by phpBB® Forum Software