How To Set Up Internet Download for Comdlg32.ocx
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
The CommonDialog control provides a standard set of dialog boxes foroperations such as opening and saving files, setting print options, andselecting colors and fonts. This article documents how to set up thecontrol for successful use in Internet Explorer.
The CommonDialog control is a licensed control that ships with Visual Basic(VB) 5.0. Only developers with a valid design-time license for the controlmay distribute the control for use in their applications or on their Websites. The control and design-time license can be obtained by downloadingthe VB 5.0 Control Creation Edition (VBCCE), purchasing VB 5.0, orpurchasing Visual InterDev.
In order to use the control in a Web page, a license package file (.lpkfile) for the control must be created. This .lpk file is then referenced bythe Web page. If there are multiple licensed controls on a page, a single.lpk file must be created for all of them.
This article covers generating the .lpk file and using it on a Web page.
Microsoft provides a signed .cab file, which can be referenced to installthe CommonDialog control. If this .cab file is used, a Web page that usesthe control would look similar to the following:
<HTML><HEAD><TITLE>Some Page</TITLE></HEAD><BODY><OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"> <PARAM NAME="LPKPath" VALUE="comdlg.lpk"></OBJECT><OBJECT ID="CommonDialog1" WIDTH=32 HEIGHT=32 CLASSID="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB" CODEBASE="http://activex.microsoft.com/controls/vb5/comdlg32.cab"></OBJECT></BODY></HTML>
Note that Comdlg.lpk is a file that you generated and the name isarbitrary. Also, the location of the file is relative to the HTML file.Here the HTML and .lpk files are assumed to be in the same directory.
For additional information about how to use licensed ActiveX Controls in InternetExplorer, please see the following article in the Microsoft Knowledge Base:
How To Using Licensed ActiveX Controls in Internet Explorer
Article ID: 168917 - Last Review: 06/22/2014 18:22:00 - Revision: 4.0