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

SummaryFieldDefinition Object

The SummaryFieldDefinition Object represents the summary used in a cross-tab, group, or report, or the summary used in a group or cross-tab graph.

SummaryFieldDefinition Object Properties

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

FooterArea

Get the area pair the summary

Read only

None

 

is in.

 

 

 

 

 

 

HeaderArea

Gets the area pair the

Read only

None

 

summary is in.

 

 

 

 

 

 

Kind

Returns CRFieldKind which

Read only

None

 

specifies what “kind” of field

 

 

 

(database, summary, formula,

 

 

 

etc.).

 

 

 

 

 

 

Constant

Value

 

 

 

 

crDatabaseField

1

 

 

crFormulaField

2

crGroupNameField

5

 

 

crParameterField

6

 

 

crRunningTotalField

7

 

 

crSpecialVarField

4

SQLExpressionField

8

 

 

crSummaryField

3

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

Name

Returns the name of the

Read only

None

 

summary field for a group or

 

 

 

report summary field. Cross-

 

 

 

tab summaries do not have a

 

 

 

unique name so an empty

 

 

 

string will be returned.

 

 

 

 

 

 

NextValue

Returns next field value.

Read only

Can be read only when top-

 

 

 

level Report object is

 

 

 

formatting.

 

 

 

 

Report Designer Component Object Model

121

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

NumberOfBytes

Returns the number of bytes

Read only

None

 

required to store the field data

 

 

 

in memory.

 

 

 

 

 

 

Parent

Reference to the Parent object

Read only

None

 

(Report Object (page 93)).

 

 

 

 

 

 

PreviousValue

Returns previous field value.

Read only

Can be read only when top-

 

 

 

level Report object is

 

 

 

formatting.

 

 

 

 

SummaryType

Returns value of type

Read only

None

 

CRSummaryType (see table

 

 

 

below) indicating the type of

 

 

 

summary (i.e., sum, average,

 

 

 

etc.).

 

 

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crSTAverage

1

 

 

 

 

 

 

crSTCount

6

 

 

crSTDCorrelation

10

 

 

 

 

 

 

crSTDCovariance

11

 

 

 

 

 

 

crSTDisctintCount

9

 

 

 

 

 

 

crSTDMedian

13

 

 

crSTDMode

17

 

 

 

 

 

 

crSTDNthLargest

15

 

 

 

 

 

 

crSTDNthMostFrequent

18

 

 

 

 

 

 

crSTDNthSmallest

16

 

 

crSTDPercentile

14

 

 

crSTDWeightedAvg

12

 

 

 

 

 

 

crSTMaximum

4

 

 

 

 

 

 

crSTMinimum

5

 

 

 

 

 

 

crSTPopStandardDeviation

8

 

 

crSTPopVariance

7

 

 

 

 

 

 

crSTSampleStandardDeviation

3

 

 

 

 

 

 

crSTSampleVariance

2

 

 

 

 

 

 

crSTSum

0

 

Report Designer Component Object Model

122

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