Solved

ActiveX Documents

Posted on 1998-07-06
3
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: 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!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

696 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