Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2720
  • Last Modified:

Deploying ActiveX Control in HTML

I have added an html doc that uses a VB ActiveX control to our existing in house program.  It works great on my computer but when I try to deploy it to our IIS it doesn't work( blank page).  I am using Package and deployment wizard.  Any suggestions would be appreciated.
0
drimando
Asked:
drimando
  • 3
  • 3
1 Solution
 
SicosCommented:

Did you add the codebase tag to youre object defenition in youre html file?

<OBJECT classid=CLSID:1C8E277D-983E-11D3-B106-0008C7A07EFA
codeBase=download/PropertiesLib.CAB#version=2,100,0,1 id=AddTab
style="LEFT: 7px; POSITION: absolute; TOP: 7px; VISIBILITY: hidden; Z-INDEX: 100">
      <PARAM NAME="_ExtentX" VALUE="1191">
      <PARAM NAME="_ExtentY" VALUE="1191">
</OBJECT>

in this example I have a directory on my webserver called download where the PropertiesLib.CAB file is

Greeting,
Sicos
0
 
drimandoAuthor Commented:
My html file is as follows:

<HTML>
<HEAD>
<TITLE>QWeb.CAB</TITLE>
</HEAD>
<BODY>
<OBJECT ID="QWeb"
CLASSID="CLSID:16B88676-6B53-4CE5-A847-ED6B7AA821AB"
CODEBASE="QWeb.CAB#version=1,0,0,0">
</OBJECT>
</BODY>
</HTML>

I just noticed, however, that on my computer it doesn't matter if QWeb.CAB is present or not - it works based on the CLSID alone.

0
 
SicosCommented:

Yeah I know. But when other people don't have the activex component installed then Internet Explorer tries to download the component from the webserver using the CODEBASE tag and youre CAB file.

Greetings,
Sicos
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
drimandoAuthor Commented:
Does anyone else have any suggestions?  Thanks.
0
 
stripathiCommented:
Sicos,

I think the right way to do it is using setup and deployment wizard of visual studio, create a deployment web package and that will generate a .asp page which will have the object tag. which you can copy and paste into your html. Also using the license generator you have to generate licx file. After done so you need to deploy it to your web site .cab file and licx file to sub folders. You also have to refer to these files by putting the relative path in you html page and that should work.

Sal.
0
 
drimandoAuthor Commented:
Can you please delete this question.  Thanks.
0
 
SicosCommented:
I did gave the solution
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now