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

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

UseSystem

Returns or sets use system

Read/Write

Can be written only when

Defaults

defaults formatting option.

 

formatting idle or active.

Value

Returns field value.

Read/Write

Can be written only when

 

 

 

formatting idle or active.

 

 

 

 

Width

Returns or sets object width.

Read/Write

Can be written only when

 

 

 

formatting idle or active.

YearType

Returns or sets year type.

Read/Write

Can be written only when

 

 

 

formatting idle or active.

 

 

 

 

FormattingInfo Object

The FormattingInfo object contains information about the section currently being formatted if that section is a Group Header or Group Footer.

FormattingInfo Object Properties

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

IsEndOfGroup

Returns whether the current

Read only

Can be read only when

 

formatting section is the end of

 

formatting active.

 

a group.

 

 

 

 

 

 

IsRepeatedGroup

Returns whether the current

Read only

Can be read only when

Header

formatting section is a repeated

 

formatting active.

 

group header.

 

 

 

 

 

 

IsStartOfGroup

Returns whether the current

Read only

Can be read only when

 

formatting section is the start of

 

formatting active.

 

a group.

 

 

FormulaFieldDefinition Object

The FormulaFieldDefinition Object provides properties and methods for retrieving information and setting options for any formula field found in a report.

Report Designer Component Object Model

50

FormulaFieldDefinition Object Properties

Property

Description

Read/Write

Restriction in

event handler

 

 

 

 

 

 

 

 

 

 

 

FormulaFieldName

Returns the formula field name as it appears

Read only

None

 

in the Formula Field list of the Formula Tab in

 

 

 

the Insert Fields dialog box (i.e.,

 

 

 

ExampleFormula).

 

 

 

 

 

 

Kind

Returns CRFieldKind (see table below) which

Read only

None

 

specifies what “kind” of field (i.e., database,

 

 

 

summary, formula, etc.).

 

 

Constant

Value

 

 

 

 

crDatabaseField

1

crFormulaField

2

 

 

crGroupNameField

5

 

 

crRunningTotalField

7

 

 

crParameterField

6

crSpecialVarField

4

 

 

crSQLExpressionField

8

 

 

crSummaryField

3

 

 

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

Name

Returns the name of the

Read only

None

 

formula field as it would be

 

 

 

displayed (referenced) in the

 

 

 

report (i.e.,

 

 

 

{@ExampleFormula}).

 

 

 

 

 

 

NextValue

Returns next field 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 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

 

 

 

active.

 

 

 

 

Report Designer Component Object Model

51

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

Text

Returns/Sets the text of the

Read/

Can be written only when

 

formula. The formula text is

Write

formatting idle.

 

changed immediately in the

 

 

 

report. If you generate a report

 

 

 

with an invalid formula, you

 

 

 

may receive and exception error.

 

 

Value

Returns field value.

Read only

Can be read only when top-level

 

 

 

Report object is formatting

 

 

 

active.

 

 

 

 

ValueType

Returns CRFieldValueType

Read only

None

 

(see 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

 

 

crIconField

18

 

 

crInt16sField

3

 

 

crInt16uField

4

 

 

crInt32sField

5

crInt32uField

6

 

 

crInt8sField

1

 

 

crInt8uField

2

 

 

crNumberField

7

crOleField

20

 

 

crPersistentMemoField

14

 

 

crPictureField

19

 

 

crStringField

12

crTimeField

11

 

 

crTransientMemoField

13

 

 

crUnknownField

22

 

 

Report Designer Component Object Model

52

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