| Introduction to Client-Side ActiveX Controls > HTML Tag Generation |
The generation of the HTML tags to support this functionality is supported by the OlectraChart2D_GenerateTag_Control() and OlectraChart3D_GenerateTag_Control() routines in the 2DGENTAG.INC and 3DGENTAG.INC files. This procedure allows ASP developers to customize the way that the tags are generated to suit their particular needs. In general, the routine will generate an .OC2/.OC3 file stored in the same location as the temporary image files, and associated with the chart via the Datapath property.
If you use the provided routines, the generated tag code for 2D is:
| Example Title |
Copy Code
|
|---|---|
<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"> <PARAM NAME="LPKPath" value="/WebChart/CABs/olch2x8.lpk"> </OBJECT> <object ID="Chart2D1" WIDTH="625" HEIGHT="505" CLASSID="CLSID:C819C5BF-6FBE-49AE-A60D-B57065E3101E" CODEBASE="/WebChart8/CABs/olch2x8.cab"> <PARAM NAME="DataPath" VALUE="http://www.yourdomain.com/Temp/1297/TF000000.OC2"> </object> |
|
The generated tag code for 3D is:
| Example Title |
Copy Code
|
|---|---|
<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"> <PARAM NAME="LPKPath" value="/WebChart8/CABs/olch3x8.lpk"> </OBJECT> <object ID="Chart3D1" WIDTH="625" HEIGHT="505" CLASSID="CLSID:6117EE34-7CB5-41F9-9586-E75344D710E2" CODEBASE="/WebChart8/CABs/olch3x8.cab"> <PARAM NAME="DataPath" VALUE="http://www.yourdomain.com/Temp/1297/TF000000.OC2"> </object> |
|
The OLCH2X8.CAB and OLCH3X8.CAB files are compressed versions of ComponentOne Chart. If the client does not have ComponentOne Chart already installed, the CAB files provide a runtime-only copy of ComponentOne Chart on the client’s machine. These cabinet files (.CAB) store all the files to be downloaded; creating a .CAB file helps to minimize the download time and helps to keep all the downloaded files together.
The OLCH2X8.LPK and OLCH3X8.LPK files are license pack files (.LPK) that provide a runtime licenses to the client's browser. There must be a registered and fully licensed version of ComponentOne Chart on the developer’s computer in order to successfully generate an .LPK file. The reference to the resulting .LPK file that you create must be placed on your HTML page before references to any ActiveX controls.
For additional information regarding the LPK files and CAB files, please see the Microsoft MSDN website at http://msdn.microsoft.com.