Добавил:
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 Object, Page 340, in the collection by using the Item property.

ParameterFieldDefinitions 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 parameter fields in the collection.

Read only

 

 

 

Item

Returns ParameterFieldDefinition Object (page 340), in a collection.

Read only

 

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 that 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 (page 349)).

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

Remarks

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

PrinterInfo Object

The PrinterInfo Object provides properties for retrieving information and setting options for the specified printer used to print a report (that is, driver name, port name, etc.). A PrinterInfo Object is obtained from the PrinterInfo property of the Report Object, Page 349.

Crystal Report Engine Object Model for the Automation Server

345

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