ComponentOne WebChart 8.0 for ActiveX
ComponentOne WebChart's Property Page

ComponentOne WebChart's property page for the design-time control is an addition to the property pages used in ComponentOne Chart. See the ComponentOne Chart online documentation or printed manual (the 2D/3D OCX User's Guide & Programming Manual) for a discussion of property pages. You can set most of WebChart's properties using the property pages.

There are two tabs associated with WebChart's Property Pages: the General tab and the About tab.

The About tab displays information about ComponentOne WebChart, including the version number and serial number.

The General tab contains a drop-down Language menu that allows the ASP designer to determine what language is utilized when writing the ASP script (either VBScript or JavaScript for ASP). The General tab also includes a Tag Routine text box that allows the user to specify a sub- routine (procedure, function, or routine) that will be called to generate an HTML tag for the chart. The sub-routine is passed two parameters: the ASP chart object for which the tag is to be generated and the name (identifier) associated with that chart.

Sub-routines: A variety of pre-built sub-routines are supplied in 2DGENTAG.INC or 3DGENTAG.INC. By default, the tag routine is set to:

Example Title
Copy Code
OlectraChart2D_GenerateTag/OlectraChart3D_GenerateTag.

This default subroutine uses the Microsoft browser component capabilities to determine the type of HTML tag that should be generated.

Here is a list of the routines supplied in 2DGENTAG.INC and what they do. (The routines are similarly named in 3DGENTAG.INC, except that 3D appears in the routine name instead of 2D.)

Routine name

What it does

OlectraChart2D_GenerateTag_JPEG

Creates a JPEG image of the chart and generates an IMG tag.

OlectraChart2D_GenerateTag_PNG

Creates a PNG image of the chart and generates an IMG tag.

OlectraChart2D_GenerateTag_Image

Calls OlectraChart2D_GenerateTag_PNG. This routine previously would check to see if the client browser supports PNG; if the browser does not, the routine calls OlectraChart2D_GenerateTag_JPEG. However, since virtually all browsers now support PNG formats, the routine has been modified. The original code of previous versions is provided, but is commented.

OlectraChart2D_GenerateTag_Control

Saves the chart to an .OC2/.OC3 file and generates an OBJECT tag for the ActiveX control. This routine also specifies the location of both LPK and CAB files so client browsers may download at need. The LPK file provides the appropriate runtime license per the Microsoft specification. However, unless you modify this routine appropriately, you must provide CAB and LPK files in the virtual directories specified in this routine.

OlectraChart2D_GenerateTag

Calls OlectraChart2D_GenerateTag_Control if the client browser supports ActiveX controls, calls OlectraChart2D_GenerateTag_Image otherwise.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback