Solved

ActiveX Documents

Posted on 1998-07-06
3
215 Views
Last Modified: 2013-11-18
I just make a test project for Project1.vbd I works on my computer  through Internet explorer but It doesn't work from other computer which don't have vb5.??
0
Comment
Question by:raza
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
Jason_G earned 0 total points
ID: 1465075
Hi Raza,
The reason for this is that the computers that don't have VB 5.0 will most likely not have the components you need, nor will these components be registered.  To do this read below;

Deploying an ActiveX Document in Internet Explorer

You link to ActiveX documents from an HTML page with a combination of HMTL and VBScript. In the following example, an ActiveX document is reached from a hyperlink on an HTML page.
·      Use HTML to provide a link to the HTML page referencing the ActiveX document.
Since the ActiveX document will replace the HTML page in Internet Explorer, it's necessary to place the component's OBJECT tag on a separate HTML page, then jump to that page — which will promptly disappear when the ActiveX document has been loaded.
The following HTML code creates a hyperlink from the first page to the second (the one that downloads the ActiveX document):
<a href="Accounts.htm">View or update accounts</a>
      
·      Use HTML to provide a means for the browser to download, register, and navigate to the ActiveX document.
The following HTML fragment instructs Internet Explorer to download the ActiveX component and register the ActiveX document in the Windows registry:
<OBJECT
      classid="clsid:2F390484-1C7D-11D0-8908-00A0C90395F4"
      codebase="Accounts.cab#version=1,0,0,0">
</OBJECT>
      
The OBJECT tag in this example includes:
·      The ActiveX document's class ID so that it can be included or found in the Windows registry.
·      A CODEBASE attribute to tell the browser where to find the component if it's not already on the client machine (and a version number to check against for updating).
·      On the same page, place VBScript that instructs Internet Explorer to navigate immediately to the ActiveX document through its .vbd file (this file was created when the ActiveX document was compiled, and contains a pointer to the component providing the ActiveX document's objects).
<SCRIPT LANGUAGE="VBScript">
Sub Window_OnLoad
      Document.Open
      Document.Write "<FRAMESET>"
      Document.Write "<FRAME SRC=""Accounts.vbd"">"
      Document.Write "</FRAMESET>"
      Document.Close
End Sub
</SCRIPT>
      
This code fragment contains only the name of the .vbd file is given, rather than a fully-qualified path.

I hope this helps.

Sincerely,
Jason

Jason Gorman (jason_gorman@scholars.com)
Learning Advisor, scholars.com
Microsoft Authorized Technical Education Center
Novell Authorized Online Training Provider
http://scholars.com
0
 

Author Comment

by:raza
ID: 1465076
Thanks alot for help

I am wondering where I can get all ActiveX component for registering the ActiveX document in the Windows registry: as you explan below

<OBJECT
    classid="clsid:2F390484-1C7D-11D0-8908-00A0C90395F4"
    codebase="Accounts.cab#version=1,0,0,0">
</OBJECT>
0
 

Author Comment

by:raza
ID: 1465077
Thanks alot for help

I am wondering where I can get all ActiveX component for registering the ActiveX document in the Windows registry: as you explan below

<OBJECT
    classid="clsid:2F390484-1C7D-11D0-8908-00A0C90395F4"
    codebase="Accounts.cab#version=1,0,0,0">
</OBJECT>
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question