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

Constant

Value

 

 

 

 

crInt16sField

3

 

 

crInt16uField

4

crInt32sField

5

 

 

crInt32uField

6

 

 

crInt8sField

1

 

 

crInt8uField

2

crNumberField

7

 

 

crOleField

20

 

 

crPersistentMemoField

14

 

 

crPictureField

19

 

 

crStringField

12

crTimeField

11

 

 

crTransientMemoField

13

 

 

crUnknownField

22

 

 

ParameterFieldDefinition Object Methods

SetCurrentValue

The SetCurrentValue method sets the current value of the parameter. This is the value that will be used for the parameter in the report. If the current value is set, no prompt will appear for the parameter when the report is run.

Syntax

object.SetCurrentValue CurrentValue, ValueType

Parameters

CurrentValue

Specifies the value that you want to set the parameter field current value to. Can

 

be number, currency, date, string, or Boolean.

 

 

ValueType

Specifies CRFieldValueType (see table below) indicating the type of the current

(Optional)

value (that is, number, currency, etc.). You may either change the parameter field

 

type using this parameter or keep the current type (as specified in the report) by

 

omitting this parameter.

 

 

Crystal Report Engine Object Model for the Automation Server

342

Constant

Value

 

 

 

 

crBitmapField

17

 

 

crBlobField

15

crBooleanField

9

 

 

crChartField

21

 

 

crCurrencyField

8

 

 

crDateField

10

crDateTimeField

16

 

 

crIconField

18

 

 

crInt16sField

3

 

 

crInt16uField

4

 

 

crInt32sField

5

crInt32uField

6

 

 

crInt8sField

1

 

 

crInt8uField

2

 

 

crNumberField

7

crOleField

20

 

 

crPersistentMemoField

14

 

 

crPictureField

19

 

 

crStringField

12

crTimeField

11

crTransientMemoField

13

 

 

crUnknownField

22

 

 

SetDefaultValue

The SetDefaultValue method sets the default value for the parameter. This is the value that will be used as the default shown when prompting for a value.

Syntax

object.SetDefaultValue DefaultValue, ValueType

Crystal Report Engine Object Model for the Automation Server

343

Parameters

DefaultValue

Specifies the value that you want to set the parameter field default value to. Can be

 

number, currency, date, string, or Boolean.

ValueType

Specifies CRFieldValueType (see table below) indicating the type of the default

(Optional)

value (i.e., number, currency, etc.). You may either change the parameter field type

 

using this parameter or keep the current type (as specified in the report) by omitting

 

this parameter.

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crBitmapField

17

 

crBlobField

15

 

 

 

 

crBooleanField

9

 

 

 

 

crChartField

21

 

 

 

 

crCurrencyField

8

 

crDateField

10

 

 

 

 

crDateTimeField

16

 

 

 

 

crIconField

18

 

 

 

 

crInt16sField

3

 

crInt16uField

4

 

 

 

 

crInt32sField

5

 

 

 

 

crInt32uField

6

 

 

 

 

crInt8sField

1

 

 

 

 

crInt8uField

2

 

 

 

 

crNumberField

7

 

 

 

 

crOleField

20

 

 

 

 

crPersistentMemoField

14

 

 

 

 

crPictureField

19

 

crStringField

12

 

 

 

 

crTimeField

11

 

 

 

 

crTransientMemoField

13

 

 

 

 

crUnknownField

22

 

 

 

Crystal Report Engine Object Model for the Automation Server

344

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