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

Area Object

The Area Object represents an area in a report. An area is a group of like sections in the report (for example, Details A - Da, Details B - Db, etc.) that all share the same characteristics. Each section within the area can be formatted differently. This object allows you to retrieve information and set options for a specified area in your report.

Area Object Properties

 

Property

Description

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

Application

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

 

Read only

 

 

that this object is associated with.

 

 

 

 

 

 

 

 

CopiesToPrint

Returns/Sets the number of copies of each item in the

 

Read/Write

 

 

Details section of the report. For example, by default,

 

 

 

 

each line of the Details section only prints once. By

 

 

 

 

setting this to 3, each line of the Details section would

 

 

 

 

print 3 times.

 

 

 

 

 

 

 

 

GroupNumber

If the area is a group, this returns the group number.

 

Read only

 

 

Otherwise, exception is thrown.

 

 

 

 

 

 

 

 

GroupOptions

Returns GroupAreaOptions Object (page 325), which

 

Read only

 

 

provides properties/methods for getting and setting

 

 

 

 

group options. Exception is thrown if area is not a group

 

 

 

 

area.

 

 

 

 

 

 

 

 

Kind

Returns CRAreaKind (see table below), which specifies

 

Read only

 

 

what “kind” of area (that is, Details, Report Header, Page

 

 

 

 

Footer, etc.).

 

 

 

 

 

 

 

 

 

Constant

 

Value

 

 

 

 

 

 

 

 

 

 

 

 

crDetail

 

4

 

 

crGroupFooter

 

5

 

 

 

 

 

 

 

crGroupHeader

 

3

 

 

 

 

 

 

 

crPageFooter

 

7

 

 

 

 

 

 

 

crPageHeader

 

2

 

 

crReportFooter

 

8

 

 

 

 

 

 

 

crReportHeader

 

1

 

 

 

 

 

 

 

 

 

 

 

Property

Description

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

Options

Returns AreaOptions Object (page 295), which provides

 

Read only

 

 

properties for getting and setting area options (that is,

 

 

 

 

new page before, keep together, etc.).

 

 

Crystal Report Engine Object Model for the Automation Server

294

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