对于需要授权的ActiveX控件,如果运行Internet Explorer的计算机未获得使用该控件的许可,则该控件将不会正确地加载在HTML
页中。您可以用Internet Client SDK中的工具Lpk_tool.exe来生成FlexCell的授权文件(FlexCell.LPK),此工具的下载地址为:
http://download.microsoft.com/download/3/7/5/375cfebc-6421-48a0-b6b9-831c4265b9e0/lpk_tool.exe
生成的.LPK文件将它上传到你的Web服务器。
在授权的计算机上运行LPK_TOOL.EXE以使用控件。
在“许可包创作工具”对话框中的“可用控件”列表框内,选择将用于HTML页的每个授权ActiveX控件,并单击“添加”。
单击“保存并退出”并为 LPK文件键入名称。这将创建LPK文件并关闭应用程序。
在HTML页上嵌入授权控件
编辑HTML页。在HTML页中,将License Manager 对象的<OBJECT>标记插入到任何其他的<OBJECT> 标记之前。License Manager
是一个用Internet Explorer安装的ActiveX控件,其类 ID如下所示。将License Manager对象的 LPKPath 属性设置为LPK文件的路
径和名称。每个 HTML 页只能有一个 LPK 文件。
<OBJECT CLASSID = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331 ">
<PARAM NAME= "LPKPath " VALUE= "relative URL to .LPK file ">
</OBJECT>
http://support.microsoft.com/kb/159923/EN-US:
Steps to add a control to an HTML page
To embed a licensed control on an HTML page, follow these steps:
Run Lpk_tool.exe on a computer that is licensed to use the control.
Highlight each licensed ActiveX control that you want to use on the HTML page, and then click Add.
Click Save & Exit, and then type a name for the LPK file.
In the HTML page, insert an <OBJECT> tag for the License Manager object before any other <OBJECT> tags. The License Manager is an ActiveX control that is installed with Internet Explorer.
Note This CLASSID, "5220cb21-c88d-11cf-b347-00aa00a28331", is for the License Manager and not for your ActiveX controls. You must use the same CLASSID every time you refer to the LPK file. In addition, you should keep the Name property of the <PARAM> tag as "LPKPath", and set the Value property for the <PARAM> tag of the License Manager object to the LPK file name and path. This path may be a relative path but must not refer to a UNC share or a URL on another domain.
Because you can only have one LPK file for each HTML page, make sure that you include all of the licensed ActiveX Controls for the page when you generate your LPK file. For example:
<OBJECT CLASSID = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="relative URL to .LPK file">
</OBJECT>
Insert the <OBJECT> tag for your licensed control afterward. For example, an HTML page that displays the Microsoft Masked Edit control looks like this:
<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="maskedit.lpk">
</OBJECT>
页中。您可以用Internet Client SDK中的工具Lpk_tool.exe来生成FlexCell的授权文件(FlexCell.LPK),此工具的下载地址为:
http://download.microsoft.com/download/3/7/5/375cfebc-6421-48a0-b6b9-831c4265b9e0/lpk_tool.exe
生成的.LPK文件将它上传到你的Web服务器。
在授权的计算机上运行LPK_TOOL.EXE以使用控件。
在“许可包创作工具”对话框中的“可用控件”列表框内,选择将用于HTML页的每个授权ActiveX控件,并单击“添加”。
单击“保存并退出”并为 LPK文件键入名称。这将创建LPK文件并关闭应用程序。
在HTML页上嵌入授权控件
编辑HTML页。在HTML页中,将License Manager 对象的<OBJECT>标记插入到任何其他的<OBJECT> 标记之前。License Manager
是一个用Internet Explorer安装的ActiveX控件,其类 ID如下所示。将License Manager对象的 LPKPath 属性设置为LPK文件的路
径和名称。每个 HTML 页只能有一个 LPK 文件。
<OBJECT CLASSID = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331 ">
<PARAM NAME= "LPKPath " VALUE= "relative URL to .LPK file ">
</OBJECT>
http://support.microsoft.com/kb/159923/EN-US:
Steps to add a control to an HTML page
To embed a licensed control on an HTML page, follow these steps:
Run Lpk_tool.exe on a computer that is licensed to use the control.
Highlight each licensed ActiveX control that you want to use on the HTML page, and then click Add.
Click Save & Exit, and then type a name for the LPK file.
In the HTML page, insert an <OBJECT> tag for the License Manager object before any other <OBJECT> tags. The License Manager is an ActiveX control that is installed with Internet Explorer.
Note This CLASSID, "5220cb21-c88d-11cf-b347-00aa00a28331", is for the License Manager and not for your ActiveX controls. You must use the same CLASSID every time you refer to the LPK file. In addition, you should keep the Name property of the <PARAM> tag as "LPKPath", and set the Value property for the <PARAM> tag of the License Manager object to the LPK file name and path. This path may be a relative path but must not refer to a UNC share or a URL on another domain.
Because you can only have one LPK file for each HTML page, make sure that you include all of the licensed ActiveX Controls for the page when you generate your LPK file. For example:
<OBJECT CLASSID = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="relative URL to .LPK file">
</OBJECT>
Insert the <OBJECT> tag for your licensed control afterward. For example, an HTML page that displays the Microsoft Masked Edit control looks like this:
<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="maskedit.lpk">
</OBJECT>