Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i access the ocx in asp from iisserver

Status
Not open for further replies.

RaghsDoubts

Programmer
Jun 10, 2002
3
IN
Here we are using on e3rd party control that is a ocx file now my problem is thathow can to call that ocx file in my asp page.
i used the object tag mentioning the classid its working on server but in client machine its giving probem if the ocx installed in client machine its working fine.how can reslove this problem.

i need to use server.crateobject()
i used this

Dim ObjBC
Set ObjBC = server.CreateObject("WBCDC.BarCode1")

but i am getting this error

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/lts/sendtousa/test/RagBarCode1.asp, line 19

Invalid class string


pl help me
 
OCX is an active x control.
Such a control needs a container, this could be a VB form, Internet Explorer or other things.
What you are trying to create with server.createobject is an instance of a com component (DLL or EXE).

An active X control should run on the client machine IF the securety settings allowe it.
You can set properties of an active X control like so:
<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; WIDTH=550 HEIGHT=400 name=myObject>
<PARAM NAME=movie VALUE=&quot;test.swf&quot;>
<PARAM NAME=quality VALUE=high>

....
In client script:
myObject.myproperty = ...
myObject.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top