Solved

ActiveX Documents

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

831 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