Adding a ComponentOne Chart 2D Control to a Web Page > Step 3: Creating a License Pack File |
Once you have created the HTML page shell for ComponentOne Chart, you must create a license pack file that the user’s browser uses to register the control on their computer. To do this, use the lpk_tool program to create a license pack file for all the ActiveX controls on your page:
1. Run lpk_tool (located in your ActiveX SDK’s \bin directory).
2. From the Available Controls list, select either ComponentOne Chart 2D or ComponentOne Chart 3D and click the Add button.
3. Click the Save & Exit button. You will be prompted for a file name and location.
After creating the .LPK file, you must add the following lines in your HTML page, before the <OBJECT> tag used to describe ComponentOne Chart. In this example, replace filename.lpk with the name of your pack file:
<OBJECT CLASSID = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331">
<PARAM NAME="LPKPath" VALUE="filename.lpk">
</OBJECT>
Notes:
· You must have a registered version of ComponentOne Chart on your computer to successfully generate a .LPK file.
· The reference to the resulting .LPK file that you create must be placed on your HTML page before references to any of your ActiveX controls.
· If your .LPK was created with only ComponentOne Chart in it, it should be 878 bytes. If it is smaller, the license pack file was not created properly.