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

Sections Collection

Sections can come from either the Report Object (page 93) or Area Object (page 22). The Sections Collection is a collection of section objects. Access a specific Section Object in the collection using the Item property.

When from the Report Object, the sections object will contain all the sections in the report.

When from the Area Object, the sections object will contain all the sections in the area only.

Sections Collection Properties

Property

Description

Read/Write

Restriction in

event handler

 

 

 

 

 

 

 

 

 

 

 

Count

Returns the number of section in the collection.

Read only

None

Item

ReturnsSection Object (page 107). Item has an index

Read only

None

 

parameter that can be either a string reference to the

 

 

 

area section (i.e., for areas with one section: “RH”,

 

 

 

“PH”, “GHn”, “D”, “GFn”, “PF”, or “RF”) or a

 

 

 

numeric, 1-based index (i.e., Item (1)) for the Report

 

 

 

Header area. Numeric index for sections starts at 1 for

 

 

 

first section in the area/report and continues in order

 

 

 

of appearance. If the area has multiple sections, they

 

 

 

are represented using a lowercase letter (i.e., “Da”,

 

 

 

“Db”, etc.).

 

 

 

 

 

 

Parent

Reference to the Parent object (Report Object (page 93)

Read only

None

 

or Area Object (page 22)).

 

 

Remarks

Instead of using the Item property as shown, you can reference a section directly, for example, Sections (“Da”).

SortField Object

The SortField Object includes properties for accessing information for record or group sort fields. It holds on to Report object, then releases the report object when destroyed. This object has an index instance variable to indicate its index.

Report Designer Component Object Model

110

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