Solved

ActiveX Documents

Posted on 1998-07-06
3
211 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now