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

Sections Collection

Sections can come from either the Report Object, Page 349, or Area Object, Page 294. The Sections Collection is a collection of section objects. Access a specific Section Object in the collection by 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

 

 

 

 

 

 

Application

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

Read only

 

object is associated with.

 

 

 

 

Count

Returns the number of section in the collection.

Read only

Item

Returns Section Object (page 361). Item has an index parameter that

Read only

 

can be either a string reference to the area section (that is, for areas

 

 

with one section: “RH”, “PH”, “GHn”, “D”, “GFn”, “PF”, or “RF”) or

 

 

a numeric, 1-based index (that is, 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 (that is, “Da”,

 

 

“Db”, etc.).

 

Parent

Reference to the Parent object (Report Object (page 349), or Area

Read only

 

Object (page 294)).

 

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

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.

Crystal Report Engine Object Model for the Automation Server

364

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