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

ReportObjects Collection Properties

Property

Description

Read/Write

Restriction in

event handler

 

 

 

 

 

 

 

 

 

 

 

Count

Returns the number of report objects in the collection.

Read only

None

 

 

 

 

Item

Returns a report object. Depending on the type of item

Read only

None

 

referenced, this can be a BlobFieldObject Object (page

 

 

 

25), FieldObject Object (page 45), TextObject Object

 

 

 

(page 124),OLEObject Object (page 70), CrossTabObject

 

 

 

Object (page 29), SubreportObject Object (page 118),

 

 

 

BoxObject Object (page 27), GraphObject Object (page

 

 

 

54), LineObject Object (page 67). Item has an index

 

 

 

parameter that is a numeric, 1-based index (i.e., Item

 

 

 

(1)). The items in the collection are indexed in the order

 

 

 

they were added to the report.

 

 

Parent

Reference to the Parent object (Section Object (page

Read only

None

 

107)).

 

 

 

 

 

 

Remarks

Instead of using the Item property as shown, you can reference a report object directly, for example, ReportOptions(1).

RunningTotalFieldDefinition Object

The RunningTotalFieldDefinition Object represents a running total field used in the report. This object provides properties for getting information on running total fields in the report.

RunningTotalFieldDefinition Object Properties

Property

Definition

 

Read/Write

Restriction in

 

event handler

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Kind

Returns CRFieldKind which specifies what “kind”

Read only

None

 

of field (that is, database, summary, formula, etc.).

 

 

 

 

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

 

 

 

crDatabaseField

1

 

 

 

 

 

 

 

 

crFormulaField

2

 

 

 

 

 

 

 

 

crGroupNameField

5

 

 

 

crParameterField

6

 

 

 

 

 

 

 

Report Designer Component Object Model

104

Constant

Value

 

 

 

 

crRunningTotalField

7

 

 

crSpecialVarField

4

crSQLExpressionField

8

 

 

crSummaryField

3

 

 

Property

Description

Read/

Restriction in event handler

Write

 

 

 

 

 

 

 

 

 

 

 

Name

Returns the name of the field

Read only

None

 

within the report (table.FIELD).

 

 

 

For example,

 

 

 

product.PRODUCT ID.

 

 

 

 

 

 

NextValue

Returns field next value.

Read only

Can be read only when top-level

 

 

 

Report object is formatting active.

 

 

 

 

NumberOfBytes

Returns the number of bytes

Read only

None

 

required to store the field data in

 

 

 

memory.

 

 

 

 

 

 

Parent

Reference to the Parent

Read only

None

 

objectReport Object (page 93).

 

 

PreviousValue

Returns field previous value.

Read only

Can be read only when top-level

 

 

 

Report object is formatting active.

 

 

 

 

RunningTotalFie

Gets running total field name.

Read only

None

ld

 

 

 

Name

 

 

 

Value

Returns field value.

Read only

Can be read only when top-level

 

 

 

Report object is formatting active.

 

 

 

 

ValueType

Returns CRFieldValueType (see

Read only

None

 

table below) which specifies the

 

 

 

“type” of value found in the

 

 

 

field.

 

 

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crBitmapField

17

 

 

 

 

 

 

crBlobField

15

 

 

 

 

 

 

crBooleanField

9

 

 

crChartField

21

 

 

 

 

 

 

crCurrencyField

8

 

 

 

 

 

 

crDateField

10

 

 

 

 

 

 

crDateTimeField

16

 

Report Designer Component Object Model

105

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