Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
191
Добавлен:
11.05.2015
Размер:
4.96 Mб
Скачать

Remarks

Instead of using the Item property as shown, you can reference a formula field directly, for example, FormulaFieldDefinitions(“ExampleFormula”).

GraphObject Object

The GraphObject Object represents a graph/chart found in a report. This object provides properties for retrieving information and setting options for a graph in your report (i.e., graph data type - group, detail or graph display type - bar, pie, etc.).

GraphObject Object Properties

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

AutoRangeData2Axis

Gets or sets auto range option

Read/Write

Can be written only when

 

for data2 axis.

 

formatting idle.

AutoRangeDataAxis

Gets or sets auto range option

Read/Write

Can be written only when

 

for data axis.

 

formatting idle.

 

 

 

 

AutoRangeSeriesAxis

Gets or sets auto range option

Read/Write

Can be written only when

 

for series axis.

 

formatting idle.

BackColor

Returns or sets the object

Read/Write

Can be written only when

 

background color.

 

formatting idle or active.

 

 

 

 

BarSize

Gets or sets bar size.

Read/Write

Can be written only when

 

 

 

formatting idle.

Constant

Value

 

 

 

 

crAverageBarSize

2

crLargeBarSize

3

 

 

crMaximumBarSize

4

 

 

crMinimumBarSize

0

 

 

crSmallBarSize

1

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

BorderColor

Returns or sets the object

Read/Write

Can be written only when

 

border color.

 

formatting idle or active.

 

 

 

 

BottomLineStyle

Returns or sets bottom line

Read/Write

Can be written only when

 

style.

 

formatting idle or active.

 

 

 

 

CloseAtPageBreak

Returns or sets close border on

Read/Write

Can be written only when

 

page break.

 

formatting idle or active.

 

 

 

 

Report Designer Component Object Model

54

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

Data2AxisDivisio-

Gets or sets data2 axis division

Read/Write

Can be written only when

Method

method.

 

formatting idle.

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crAutomaticDivision

0

 

 

crManualDivision

1

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

Data2AxisDivision

Gets or sets data2 axis division

Read/Write

Can be written only when

Number

number.

 

formatting idle.

 

 

 

 

Data2AxisGridline

Gets or sets data2 axis grid line

Read/Write

Can be written only when

 

type.

 

formatting idle.

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crMajorAndMinorGridlines

3

 

 

crMajorGridlines

2

 

 

 

 

 

 

crMinorGridlines

1

 

 

 

 

 

 

crNoGridlines

0

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

Data2AxisNumber

Gets or sets data2 axis number

Read/Write

Can be written only when

Format

format.

 

formatting idle.

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crCurrencyNoDecimal

3

 

 

 

 

 

 

crCurrencyTwoDecimal

4

 

 

 

 

 

 

crNoDecimal

0

 

 

 

 

 

 

crOneDecimal

1

 

 

 

 

 

 

crPercentNoDecimal

5

 

 

crPercentOneDecimal

6

 

 

 

 

 

 

crPercentTwoDecimal

7

 

 

 

 

 

 

crTwoDecimal

2

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

DataAxisDivision

Gets or sets data axis division

Read/Write

Can be written only when

Method

method.

 

formatting idle.

 

 

 

 

Report Designer Component Object Model

55

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crAutomaticDivision

0

 

 

 

 

 

 

crManualDivision

1

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

DataAxisDivision

Gets or sets data axis division

Read/

Can be written only when

Number

number.

Write

formatting idle.

 

 

 

 

DataAxisGridline

Gets or sets data axis grid line

Read/

Can be written only when

 

type.

Write

formatting idle.

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crMajorAndMinorGridlines

3

 

 

 

 

 

 

crMajorGridlines

2

 

 

crMinorGridlines

1

 

 

 

 

 

 

crNoGridlines

0

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

DataAxisNumber

Gets or sets data axis number

Read/

Can be written only when

Format

format.

Write

formatting idle.

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crCurrencyNoDecimal

3

 

 

crCurrencyTwoDecimal

4

 

 

crNoDecimal

0

 

 

 

 

 

 

crOneDecimal

1

 

 

 

 

 

 

crPercentNoDecimal

5

 

 

 

 

 

 

crPercentOneDecimal

6

 

 

crPercentTwoDecimal

7

 

 

 

 

 

 

crTwoDecimal

2

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

DataPoint

Gets or sets data points on

Read/

Can be written only when

 

risers.

Write

formatting idle.

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crNone

0

 

 

 

 

 

 

crShowLabel

1

 

 

crShowValue

2

 

 

 

 

 

Report Designer Component Object Model

56

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

DataType

Returns CRGraphDataType (see

Read only

None

 

table below) which specifies the

 

 

 

type of data used in the graph.

 

 

 

 

 

 

Constant

Value

 

 

 

 

crCrossTabGraph

2

 

 

crDetailGraph

1

 

 

crGroupGraph

0

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

DataValueNumber

Gets or sets data value number

Read/

Can be written only when

Format

format.

Write

formatting idle.

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crCurrencyNoDecimal

3

 

 

crCurrencyTwoDecimal

4

 

 

 

 

 

 

crNoDecimal

0

 

 

 

 

 

 

crOneDecimal

1

 

 

 

 

 

 

crPercentNoDecimal

5

 

 

crPercentOneDecimal

6

 

 

 

 

 

 

crPercentTwoDecimal

7

 

 

 

 

 

 

crTwoDecimal

2

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

EnableShowLegend

Gets or sets show legend.

Read/

Can be written only when

 

 

Write

formatting idle.

FootNote

Gets or sets footnote.

Read/

Can be written only when

 

 

Write

formatting idle.

 

 

 

 

GraphColor

Gets or sets graph color.

Read/

Can be written only when

 

 

Write

formatting idle.

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crBlackAndWhiteGraph

1

 

 

crColorGraph

0

 

 

 

 

 

Report Designer Component Object Model

57

Property

Description

Read/Write

 

Restriction in event handler

 

 

 

 

 

 

 

 

 

 

 

 

GraphDirection

Gets or sets graph direction.

Read/

 

 

Can be written only when

 

 

Write

 

 

formatting idle.

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

crHorizontalGraph

0

 

 

 

 

crVerticalGraph

1

 

 

 

 

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

 

Restriction in event handler

 

 

 

 

 

 

 

 

 

 

 

 

GraphType

Gets or sets graph type.

Read/

 

 

Can be written only when

 

 

Write

 

 

formatting idle.

 

 

 

 

 

 

 

 

 

 

 

 

Constant

 

Value

 

 

 

 

 

 

 

 

 

 

 

 

 

 

crAbsoluteAreaGraph

 

20

 

 

 

 

 

 

 

 

 

crDualAxisBubbleGraph

 

91

 

 

 

crFaked3DAbsoluteAreaGraph

 

23

 

 

 

crFaked3DPercentAreaGraph

 

25

 

 

 

 

 

 

 

 

 

crFaked3DPercentBarGraph

 

5

 

 

 

 

 

 

 

 

 

crFaked3DRegularPieGraph

 

31

 

 

 

 

 

 

 

 

 

crFaked3DSideBySideBarGraph

 

3

 

 

 

crFaked3DStackedAreaGraph

 

24

 

 

 

 

 

 

 

 

 

crFaked3DStackedBarGraph

 

4

 

 

 

 

 

 

 

 

 

crHighLowDualAxisGraph

 

101

 

 

 

 

 

 

 

 

 

crHighLowGraph

 

100

 

 

 

crHighLowOpenCloseDualAxisGraph

105

 

 

 

 

 

 

 

 

 

crHighLowOpenCloseGraph

 

104

 

 

 

 

 

 

 

 

 

crHighLowOpenDualAxisGraph

 

103

 

 

 

 

 

 

 

 

 

crHighLowOpenGraph

 

102

 

 

 

 

 

 

 

 

 

crLineGraphWithMarkers

 

13

 

 

 

crMultipleDoughnutGraph

 

41

 

 

 

 

 

 

 

 

 

crMultiplePieGraph

 

32

 

 

 

 

 

 

 

 

crMultipleProportionalDoughnutGraph

42

 

 

 

 

 

 

 

 

 

crMultipleProportionalPieGraph

 

33

 

 

 

crPercentageLineGraph

 

12

 

 

 

 

 

 

 

 

crPercentageLineGraphWithMarkers

15

 

 

 

 

 

 

 

 

 

crPercentAreaGraph

 

22

 

 

 

 

 

 

 

 

 

crPercentBarGraph

 

2

 

 

Report Designer Component Object Model

58

Constant

Value

 

 

 

 

crRadarDualAxisGraph

82

 

 

crRegularBubbleGraph

90

crRegularDoughnutGraph

40

 

 

crRegularLineGraph

10

 

 

crRegularPieGraph

30

 

 

crRegularRadarGraph

80

crSideBySideBarGraph

0

 

 

crStackedAreaGraph

21

 

 

crStackedBarGraph

1

 

 

crStackedLineGraph

11

 

 

crStackedLineGraphWithMarkers

14

crStackedRadarGraph

81

 

 

crThreeDCutCornersGraph

53

 

 

crThreeDOctagonGraph

52

 

 

crThreeDPyramidGraph

51

crThreeDRegularGraph

50

 

 

crThreeDSurfaceHoneycombGraph

62

 

 

crThreeDSurfaceRegularGraph

60

 

 

crThreeDSurfaceWithSidesGraph

61

crUnknownGraph

1000

crXyScatterDualAxisGraph

71

 

 

crXyScatterDualAxisWithLabelsGraph

73

 

 

crXyScatterGraph

70

 

 

crXyScatterWithLabelsGraph

72

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

GroupAxisGridline

Gets or sets group axis grid line

Read/

Can be written only when

 

type.

Write

formatting idle.

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crMajorAndMinorGridlines

3

 

 

 

 

 

 

crMajorGridlines

2

 

 

 

 

 

 

crMinorGridlines

1

 

 

crNoGridlines

0

 

 

 

 

 

Report Designer Component Object Model

59

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

GroupsTitle

Gets or sets groups title.

Read/

Can be written only when

 

 

Write

formatting idle.

HasDropShadow

Returns or sets border drop

Read/

Can be written only when

 

shadow.

Write

formatting idle or active.

 

 

 

 

Height

Returns or sets object height.

Read/

Can be written only when

 

 

Write

formatting idle or active.

KeepTogether

Returns or sets keep object

Read/

Can be written only when

 

together.

Write

formatting idle or active.

 

 

 

 

Kind

Returns CRObjectKind object

Read only

None

 

which specifies what “kind” of

 

 

 

object (i.e., box, cross-tab, field,

 

 

 

etc.).

 

 

 

 

 

 

Constant

Value

 

 

 

 

crBlobFieldObject

9

 

 

crBoxObject

4

 

 

crCrossTabObject

8

crFieldObject

1

 

 

crGraphObject

7

 

 

crLineObject

3

 

 

crMapObject

10

crOleObject

6

crSubreportObject

5

 

 

crTextObject

2

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

Left

Returns or sets object upper left

Read/

Can be written only when

 

position.

Write

formatting idle or active.

 

 

 

 

LeftLineStyle

Returns or sets left line style.

Read/

Can be written only when

 

 

Write

formatting idle or active.

 

 

 

 

Constant

Value

 

 

 

 

crLSDashLine

3

 

 

crLSDotLine

4

 

 

crLSDoubleLine

2

crLSNoLine

0

 

 

crLSSingleLine

1

 

 

Report Designer Component Object Model

60

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

LegendPosition

Gets or sets legend position.

Read/

Can be written only when

 

 

Write

formatting idle.

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crPlaceBottomCenter

1

 

 

crPlaceLeft

3

 

 

 

 

 

 

crPlaceRight

4

 

 

 

 

 

 

crPlaceTopCenter

2

 

 

 

 

 

 

crPlaceUpperRight

0

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

MarkerShape

Gets or sets marker shape.

Read/

Can be written only when

 

 

Write

formatting idle.

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crCircleShape

4

 

 

 

 

 

 

crDiamondShape

5

 

 

 

 

 

 

crRectangleShape

1

 

 

 

 

 

 

crTriangleShape

8

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

MarkerSize

Gets or sets marker size.

Read/

Can be written only when

 

 

Write

formatting idle.

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crLargeMarkers

4

 

 

 

 

 

 

crMediumLargeMarkers

3

 

 

 

 

 

 

crMediumMarkers

2

 

 

 

 

 

 

crMediumSmallMarkers

1

 

 

crSmallMarkers

0

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

MaxData2Axis

Gets or sets data2-axis max

Read/

Can be written only when

Value

value.

Write

formatting idle.

 

 

 

 

MaxDataAxisValue

Gets or sets data-axis max

Read/

Can be written only when

 

value.

Write

formatting idle.

 

 

 

 

Report Designer Component Object Model

61

 

Property

 

Description

 

Read/Write

 

Restriction in event handler

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MaxSeriesAxisValue

 

Gets or sets series-axis max

 

Read/

 

Can be written only when

 

 

 

value.

 

Write

 

formatting idle.

 

MinData2AxisValue

 

Gets or sets data2-axis min

 

Read/

 

Can be written only when

 

 

 

value.

 

Write

 

formatting idle.

 

 

 

 

 

 

 

 

 

MinDataAxisValue

 

Gets or sets data-axis min value.

 

Read/

 

Can be written only when

 

 

 

 

 

Write

 

formatting idle.

 

MinSeriesAxisValue

 

Gets or sets series-axis min

 

Read/

 

Can be written only when

 

 

 

value.

 

Write

 

formatting idle.

 

 

 

 

 

 

 

 

 

Name

 

Returns or sets object name.

 

Read/

 

Can be written only when

 

 

 

 

 

Write

 

formatting idle.

 

Parent

 

Reference to the Parent object

 

Read only

 

None

 

 

 

(Section Object (page 107)).

 

 

 

 

 

 

 

 

 

 

 

 

 

PieSize

 

Gets or sets pie size.

 

Read/

 

Can be written only when

 

 

 

 

 

Write

 

formatting idle.

 

 

 

 

 

 

 

 

 

 

 

Constant

 

Value

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

crAveragePieSize

 

2

 

 

 

 

 

crLargePieSize

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

crMaximumPieSize

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

crMinimumPieSize

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

crSmallPieSize

 

1

 

 

 

 

 

 

 

 

 

 

 

Property

 

Description

 

Read/Write

 

Restriction in event handler

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RightLineStyle

 

Returns or sets the right line

 

Read/

 

Can be written only when

 

 

 

style.

 

Write

 

formatting idle or active.

 

 

 

 

 

 

 

 

 

SeriesAxisDivision-

 

Gets or sets series axis division

 

Read/

 

Can be written only when

 

Method

 

method.

 

Write

 

formatting idle.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Constant

 

Value

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

crAutomaticDivision

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

crManualDivision

 

1

 

 

 

 

 

 

 

 

 

 

 

Property

 

Description

 

Read/Write

 

Restriction in event handler

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SeriesAxisDivision-

 

Gets or sets series axis division

 

Read/

 

Can be written only when

 

Number

 

number.

 

Write

 

formatting idle.

 

 

 

 

 

 

 

 

 

SeriesAxisGridline

 

Gets or sets series axis grid line

 

Read/

 

Can be written only when

 

 

 

type.

 

Write

 

formatting idle.

 

 

 

 

 

 

 

 

Report Designer Component Object Model

62

Constant

Value

 

 

 

 

crMajorAndMinorGridlines

3

 

 

crMajorGridlines

2

crMinorGridlines

1

 

 

crNoGridlines

0

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

SeriesAxisNumber

Gets or sets series axis number

Read/

Can be written only when

Format

format.

Write

formatting idle.

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crCurrencyNoDecimal

3

 

 

 

 

 

 

crCurrencyTwoDecimal

4

 

 

crNoDecimal

0

 

 

 

 

 

 

crOneDecimal

1

 

 

 

 

 

 

crPercentNoDecimal

5

 

 

 

 

 

 

crPercentOneDecimal

6

 

 

crPercentTwoDecimal

7

 

 

 

 

 

 

crTwoDecimal

2

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

SeriesTitle

Gets or sets series title.

Read/

Can be written only when

 

 

Write

formatting idle.

 

 

 

 

SliceDetachment

Gets or sets slice detachment.

Read/

Can be written only when

 

 

Write

formatting idle.

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crLargestSlice

2

 

 

 

 

 

 

crNoDetachment

0

 

 

 

 

 

 

crSmallestSlice

1

 

 

 

 

 

 

 

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

SubTitle

Gets or sets subtitle.

Read/

Can be written only when

 

 

Write

formatting idle.

Suppress

Returns or sets object visibility.

Read/

Can be written only when

 

 

Write

formatting idle or active.

 

 

 

 

Title

Gets or sets title.

Read/

Can be written only when

 

 

Write

formatting idle.

Report Designer Component Object Model

63

Соседние файлы в папке crystal