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

 

Constant

Value

 

 

 

 

 

 

 

crBlobFieldObject

9

 

 

 

 

crBoxObject

4

 

crCrossTabObject

8

 

 

 

 

crFieldObject

1

 

 

 

 

crGraphObject

7

 

 

 

 

crLineObject

3

 

crOleObject

6

 

 

 

 

crSubreportObject

5

 

 

 

 

crTextObject

2

 

 

 

 

 

 

Property

Description

Read/Write

 

 

 

 

 

 

Parent

Reference to the Parent object (Section Object (page 361)).

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

FieldValue Object (32-bit only)

The FieldValue Object is only available through the Window Object, Page 379, event DrillOnDetail, Page 382, used in Visual Basic 5.0. When a user drills down on a Detail record value, all fields for that record are stored in an array of FieldValue objects that is returned in the FieldValues parameter of the DrillOnDetail event.

FieldValue Object Properties

Property

Description

Read/Write

 

 

 

 

 

 

Application

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

Read only

 

this object is associated with.

 

Name

Returns the name of the field.

Read only

 

 

 

Parent

Reference to the Parent object (Window Object (page 379)).

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

Value

Returns the data contained in the field.

Read only

Font Object

The Font Object provides properties for retrieving information and setting options for the font used in a specified field (that is, Bold, line style, etc.). A Font Object is obtained from the Font property of the FieldObject Object, Page 315. Options, such as font name, defined by this object are dependent upon the printer driver selected for the report.

Crystal Report Engine Object Model for the Automation Server

316

NOTE: You must always use a prefix when referencing the Font Object. Visual Basic includes a VB Font Object that is always included when creating a project, so conflicts will always occur unless the object is properly referenced (for example, CRPEAuto.Font). For more information see Object Naming Conflicts, Page 283.

Font Object Properties

Property

Description

Read/Write

 

 

 

 

 

 

Application

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

Read only

 

this object is associated with.

 

 

 

 

Color

Returns/Sets a number representing the color of the font.

Read/Write

 

The number represents an OLE color that can be set by using

 

 

RGB (that is, RGB (255, 0, 0 for red) or by specifying CRColor

 

 

(see table below).

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crAqua

16776960

 

 

 

 

crBlack

0

 

 

 

 

crBlue

16711680

 

 

 

 

crFuchsia

16711935

 

 

 

 

crGray

8421504

 

 

 

 

crGreen

32768

 

crLime

65280

 

 

 

 

crMaroon

128

 

 

 

 

crNoColor

-1

 

 

 

 

crOlive

32896

 

 

 

 

crPurple

8388736

 

 

 

 

crRed

255

 

 

 

 

crSilver

12632256

 

 

 

 

crTeal

8421376

 

 

 

 

crWhite

16777215

 

crYellow

65536

 

 

 

 

 

 

Property

Description

Read/Write

 

 

 

 

 

 

Italic

Returns/Sets Boolean value indicating whether or not the

Read/Write

 

font is italicized.

 

Name

Returns/Sets the name of the font. Available fonts for any

Read/Write

 

report are dependent upon the printer driver selected for the

 

 

report.

 

Crystal Report Engine Object Model for the Automation Server

317

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