Microsoft KB Archive/168917: Difference between revisions

From BetaArchive Wiki
m (Text replacement - ">" to ">")
m (Text replacement - """ to """)
 
Line 70: Line 70:
<BODY>
<BODY>


<OBJECT CLASSID=&quot;clsid:5220cb21-c88d-11cf-b347-00aa00a28331&quot;>
<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331">
     <PARAM NAME=&quot;LPKPath&quot; VALUE=&quot;comdlg.lpk&quot;>
     <PARAM NAME="LPKPath" VALUE="comdlg.lpk">
</OBJECT>
</OBJECT>


<OBJECT ID=&quot;CommonDialog1&quot; WIDTH=32 HEIGHT=32
<OBJECT ID="CommonDialog1" WIDTH=32 HEIGHT=32
     CLASSID=&quot;CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB&quot;
     CLASSID="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB"
     CODEBASE=&quot;http://activex.microsoft.com/controls/vb5/comdlg32.cab&quot;>
     CODEBASE="http://activex.microsoft.com/controls/vb5/comdlg32.cab">
</OBJECT>
</OBJECT>



Latest revision as of 10:04, 21 July 2020

Knowledge Base


Article ID: 168917

Article Last Modified on 7/13/2004



APPLIES TO

  • Microsoft Internet Explorer 3.0
  • Microsoft Internet Explorer 3.01
  • Microsoft Internet Explorer 3.02
  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 5.0
  • Microsoft Internet Explorer 5.5



This article was previously published under Q168917

SUMMARY

The CommonDialog control provides a standard set of dialog boxes for operations such as opening and saving files, setting print options, and selecting colors and fonts. This article documents how to set up the control 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 control may distribute the control for use in their applications or on their Web sites. The control and design-time license can be obtained by downloading the VB 5.0 Control Creation Edition (VBCCE), purchasing VB 5.0, or purchasing Visual InterDev.

In order to use the control in a Web page, a license package file (.lpk file) for the control must be created. This .lpk file is then referenced by the Web page. If there are multiple licensed controls on a page, a single .lpk file must be created for all of them.

MORE INFORMATION

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 install the CommonDialog control. If this .cab file is used, a Web page that uses the 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 is arbitrary. 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.

REFERENCES

For additional information about how to use licensed ActiveX Controls in Internet Explorer, please see the following article in the Microsoft Knowledge Base:

159923 How To Using Licensed ActiveX Controls in Internet Explorer


Keywords: kbhowto kbsetup KB168917