GraphOptions

GraphOptions specifies several of the options for the specified chart.

Syntax
[form.]Report.GraphOptions(ArrayIndex%) [= sectionCode; graphNum; 
fontFace; barDirection; labelRisers; gridLines; legend; max; min$]

For example:

CrystalReport1.GraphOptions(0) = "FOOTER;0;Arial;H;T;F;X;max;min"

«Sets the font to Arial, sets horizontal bars, shows a data value on every riser (labelRisers = T), and toggles the grid lines off in the first Graph in the Page Footer section.»

Remarks

With GraphOptions, you can specify changes to one or more graphs at runtime. Those changes then take place sequentially when you make the "Action=1" call. The array index value for GraphOptions simply specifies the sequence number for the change.

Thus:

CrystalReport1.GraphOptions(0) = "GROUPHDR.0.0; 1; Arial; (H; T; F; legend; max; min"

when making changes to one graph only, but

CrystalReport1.GraphOptions(0) = "TITLE; 1 Arial; H; T; F; X; 100; 0"
CrystalReport1.GraphOptions(1) = "TITLE; 1 Arial; H; T; F; X; 100; 0"

when making changes to more than one graph.

Use the following chart as a guide in entering the required property values:

Parameter Description Values expected

sectionCode

Specifies the section in which you want to modify a graph.

Please refer to Overview of Section Codes.

graphNum

Specifies which graph in the section you want to modify.

Graphs in a section are numbered, starting with zero, left to right first, then top to bottom.

fontFace

Specifies the font face you want to use for the entire graph.

Actual name of font (i.e., Arial).

barDirection

In a bar graph, specifies the direction in which you want the graph bars to appear.

H = horizontal, V = vertical,
X = as is

labelRisers

Specifies whether or not you want to show the data value on every riser.

T= true, F = False, X = as is

gridLines

Specifies whether or not you want to show grid lines.

T= true, F = False, X = as is

legend

Specifies whether or not you want to show a legend.

T= true, F = False, X = as is

max

Specifies the maximum value you want included in your graph.

Enter a number.

min

Specifies the minimum value you want included in your graph.

Enter a number.

Data Type

Array of strings

Availability

Runtime



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com