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

Property

Description

Read/Write

 

 

 

 

 

 

Parent

Reference to the Parent object (FieldObject Object (page

Read only

 

315)).

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

Size

Returns/Sets the point size of the font.

Read/Write

 

 

 

StrikeThrough

Returns/Sets Boolean value indicating whether or not the

Read/Write

 

font is struck out.

 

Underline

Returns/Sets Boolean value indicating whether or not the

Read/Write

 

font is underlined.

 

Weight

Returns/Sets the weight of the font. CRFontWeight (see table

Read/Write

 

below) can be used for convenience.

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crFWBold

700

 

 

 

 

crFWDontCare

0

 

 

 

 

crFWExtraBold

800

 

 

 

 

crFWExtraLight

200

 

crFWHeavy

900

 

 

 

 

crFWLight

300

 

 

 

 

crFWMedium

500

 

 

 

 

crFWNormal

400

 

crFWSemiBold

600

 

 

 

 

crFWThin

100

 

 

 

FormulaFieldDefinition Object

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

FormulaFieldDefinition Properties

Property

Description

Read/Write

 

 

 

 

 

 

Application

Returns a reference to the Application Object (page 290), that

Read only

 

this object is associated with.

 

FormulaFieldName

Returns the formula field name as it appears in the Formula

Read only

 

Field list on the Formula Tab of the Insert Fields dialog box

 

 

(for example, NewExampleFormula)..

 

Kind

Returns CRFieldKind (see table below), which specifies what

Read only

 

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

 

Crystal Report Engine Object Model for the Automation Server

318

 

Constant

Value

 

 

 

 

 

 

 

crDatabaseField

1

 

 

 

 

crFormulaField

2

 

crGroupNameField

5

 

 

 

 

crParameterField

6

 

 

 

 

crSpecialVarField

4

 

 

 

 

crSummaryField

3

 

 

 

Name

Returns the name of the formula field as it would be

Read only

 

displayed (referenced) in the report (that is,

 

 

{@NewExampleFormula}).

 

 

 

 

NumberOfBytes

Returns the number of bytes required to store the field data

Read only

 

in memory.

 

Parent

Reference to the Parent object (Report Object (page 349)).

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

Text

Returns/Sets the text of the formula. The formula text is

Read/Write

 

changed immediately in the report. With that in mind, you

 

 

should check the validity of the formula immediately after

 

 

setting the Text property. Use Check (page 320), to check

 

 

formulas. If you generate a report with an invalid formula,

 

 

you may receive and exception error. .

 

ValueType

Returns CRFieldValueType (see table below), which

Read only

 

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

 

 

 

Crystal Report Engine Object Model for the Automation Server

319

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