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

ParameterFieldDefinitions Collection

The ParameterFieldDefinitions Collection is a collection of parameter fields in the report. If the report contains any subreports, parameter fields in the subreports will also be included in the collection. Access a specific ParameterFieldDefinition.

ParameterFieldDefinitions Collection Properties

Property

Description

Read/Write

Restriction in

event handler

 

 

 

 

 

 

 

 

 

 

 

Count

Returns the number of parameter fields in the

Read only

None

 

collection.

 

 

 

 

 

 

Item

Returns ParameterFieldDefinition Object

Read only

None

 

(page 83), in a collection. This property has

 

 

 

two parameters: Index and ReportName

 

 

 

(optional). The index can be numeric (1-

 

 

 

based), for example, Item(1). When a numeric

 

 

 

index is used, the items in the collection are

 

 

 

indexed in the order they were added to the

 

 

 

report followed by the parameter fields from

 

 

 

any subreport, in the same order. The second

 

 

 

parameter is not necessary if a numeric index

 

 

 

is used. The index can also be a string,

 

 

 

representing the parameter name. If the

 

 

 

report name is not included, the parameter

 

 

 

field is assumed to be in the primary report. If

 

 

 

the parameter field exists in a subreport, you

 

 

 

must also pass the subreport name as the

 

 

 

second parameter for Item.

 

 

Parent

Reference to the Parent object (Report Object

Read only

None

 

(page 93)).

 

 

 

 

 

 

Remarks

Instead of using the Item property as shown, you can reference a parameter field directly, for example, ParameterFieldDefintions(1).

PrintingStatus Object

The PrintingStatus Object provides properties for retrieving information and setting options for the printing status of a report (i.e., number of pages, latest page to be printed, etc.). A PrintingStatus Object is obtained from the PrintingStatus property of the Report Object (page 93).

Report Designer Component Object Model

92

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