How to use authorized ActiveX controls in Internet Explorer

Source: Internet
Author: User
Tags microsoft website
Go to http://support.microsoft.com/kb/159923/zh-cnthis page Summary

To add a widget to an HTML page

Troubleshooting

Reference


Summary

If you use this control on a computer that is not authorized to use an ActiveX control, the control cannot be correctly loaded on the Internet Explorer HTML page. For example, if you use Microsoft Visual C ++ to build a control, the HTML page with the control can be smoothly loaded to the computer where the control is built, but cannot be loaded to another computer.

To use the authorization control on the HTML page on an unauthorized computer, you must generate a license agreement package (. LPK) file .. The LPK file provides a runtime license for the authorization control on the HTML page. You can use the license package creation tool (lpk_tool.exe) to generate this file. To obtain the license agreement package creation tool, visit the following Microsoft Website:

Http://www.microsoft.com/downloads/details.aspx? Familyid = d2728e89-575e-42e9-a6ff-07d0021e68cc (Http://www.microsoft.com/downloads/details.aspx? Familyid = d2728e89-575e-42e9-a6ff-07d0021e68cc)

Back to Top

To add a widget to an HTML page

To embed an authorized control on an HTML page, follow these steps:

1. Run lpk_tool.exe on the computer that has the permission to use the control.
2. Display Each authorization ActiveX control to be used in the HTML page in a reversed manner, and then clickAdd.
3. ClickSave and exitAnd then type The Name Of The LPK file.
4. Insert the tag for the license manager object before all other tags on the HTML page. The License Manager is an ActiveX control installed with Internet Explorer.

note : The following classid "5220cb21-c88d-11cf-b347-00aa00a28331" belongs to the license manager, not the ActiveX control. Each time you reference an LPK file, you must use the same classid. In addition, the marked name attribute should be kept as "lpkpath ", set the marked value attribute of the License Manager object to the name and path of the LPK file. This path can be a relative path, but it cannot reference URLs in UNC sharing or other domains.

since each HTML page can have only one LPK file, make sure that all authorized ActiveX controls are added when generating the LPK file. Example:

    
5. Insert the <Object> tag of the authorization control. For example, the HTML page of the Microsoft Masked Edit Control is displayed as follows:

<Object classid = "CLSID: 5220cb21-c88d-11cf-b347-00aa00a28331" viewastext> <Param name = "lpkpath" value = "maskedit. LPK "> </Object> <object classid =" CLSID: C932BA85-4374-101B-A56C-00AA003668DC "width = 100 Height = 25 viewastext> </Object>

Back to Top

Troubleshooting

Verify the following items before using authorized controls on the web page:

1. Verify that you have a redistribution license agreement for the control.
2. Verify that the license agreement allows you to use the control on the Internet.
3. If the <Object> flag of the ActiveX control provides the codebase parameter, verify that your license agreement allows you to use this parameter. Most third-party companies provide tested. cab file versions for their controls. For software download instructions, see createCompositionFile.

To verify the above information, check the license agreement for the control in question. "Reserve all rights" means that you only have the right to permit in a clearly stated manner. Any activity that is not allowed (or not explicitly executed) in the execution of the license agreement may violate the Agreement.

Note:: ActiveX controls attached to Microsoft Visual C ++ and Microsoft Visual Basic are also authorization controls. When using them on an HTML page, follow these steps. Microsoft provides signed versions of these. CAB files. For more information, see the reference section.

Back to Top

Reference

For more information about cab file distribution, clickArticleTo view the articles in the Microsoft Knowledge Base:

172991 Http://support.microsoft.com/kb/172991) CAB files distributed with Visual Basic 5.0

For additional information about the Internet component download process, click the following article number to view the article in the Microsoft Knowledge Base:

264570 Http://support.microsoft.com/kb/264570) Network Broadcast: How do I download Internet components? 252937 Http://support.microsoft.com/kb/252937) How to find Code More information about download failure 271594 Http://support.microsoft.com/kb/271594) Online troubleshooting of Internet component download is now available at 271273 Http://support.microsoft.com/kb/271273) The second authorized ActiveX control cannot be loaded.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.