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

SubreportObject Object

The SubreportObject Object represents a subreport found in a report. A subreport is a free-standing or linked report found within the main report. This object provides properties for retrieving information on the subreport (that is, name, etc.).

Subreport Object Properties

Property

Description

Read/Write

 

 

 

 

 

 

Application

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

Read only

 

this object is associated with.

 

 

 

 

Kind

Returns CRObjectKind (see table below) that specifies what

Read only

 

“kind” of object (that is, box, cross-tab, field).

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crBlobFieldObject

9

 

crBoxObject

4

 

 

 

 

crCrossTabObject

8

 

 

 

 

crFieldObject

1

 

 

 

 

crGraphObject

7

 

crLineObject

3

 

 

 

 

crOleObject

6

 

 

 

 

crSubreportObject

5

 

 

 

 

crTextObject

2

 

 

 

Name

Returns the name of the subreport.

Read only

Parent

Reference to the Parent object (Section Object (page 361)).

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

SummaryFieldDefinition Object

The SummaryFieldDefinition Object represents the summary used in a cross-tab, group, or report, or the summary used in a group or cross-tab graph.

Crystal Report Engine Object Model for the Automation Server

369

SummaryFieldDefinition Object Properties

Property

Description

 

 

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

Application

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

 

Read only

 

object is associated with.

 

 

 

 

 

 

 

 

 

 

CrossTabObject

Returns CrossTabObject Object (page 299), that contains the

 

Read only

 

summary field. This property is for cross-tab summary fields only;

 

 

 

if the summary field is not from a cross-tab you will get an

 

 

 

exception.

 

 

 

 

 

 

 

 

 

 

FooterArea

Returns Area Object (page 294), indicating the Group/Report

 

Read only

 

Footer area of the summary. This property is for group or report

 

 

 

summary fields only; if the summary is from a cross-tab you will

 

 

 

get an exception when using this property.

 

 

 

 

 

 

 

 

ForCrossTab

Returns Boolean value indicating if summary is used in a cross-tab.

 

Read only

HeaderArea

Returns Area Object (page 294), indicating the Group/Report

 

Read only

 

Header area of the summary. If the summary is from a cross-tab

 

 

 

you will get an exception when using this property.

 

 

 

 

 

 

 

 

Kind

Returns CRFieldKind, which specifies what “kind” of field

 

Read only

 

(database, summary, formula, etc.).

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

crDatabaseField

1

 

 

 

 

 

 

 

 

 

 

crFormulaField

2

 

 

 

 

 

 

 

 

 

 

crGroupNameField

5

 

 

 

 

 

 

 

 

 

 

crParameterField

6

 

 

 

 

crSpecialVarField

4

 

 

 

 

 

 

 

 

 

 

crSummaryField

3

 

 

 

 

 

 

 

 

 

 

 

 

 

Property

Description

 

 

Read/Write

 

 

 

 

 

 

 

 

Name

Returns the name of the summary field for a group or report

 

Read only

 

summary field. Cross-tab summaries do not have a unique name,

 

 

 

 

so an empty string will be returned.

 

 

 

NumberOfBytes

Returns the number of bytes required to store the field data in

 

Read only

 

memory.

 

 

 

 

 

 

 

 

Parent

Reference to the Parent object Report Object (page 349).

 

Read only

 

 

 

 

Report

Reference to Report Object (page 349).

 

Read only

SummaryType

Returns value of type CRSummaryType (see table below)

 

Read only

 

indicating the type of summary (that is, sum, average, etc.).

 

 

 

 

 

 

 

 

 

Crystal Report Engine Object Model for the Automation Server

370

 

Constant

Value

 

 

 

 

 

 

 

 

 

 

crSTAverage

1

 

 

 

 

 

 

crSTCount

6

 

 

crSTDisctintCount

9

 

 

 

 

 

 

crSTMaximum

4

 

 

 

 

 

 

crSTMinimum

5

 

 

 

 

 

 

crSTPopStandardDeviation

8

 

 

crSTPopVariance

7

 

 

 

 

 

 

crSTSampleStandardDeviation

3

 

 

 

 

 

 

crSTSampleVariance

2

 

 

 

 

 

 

crSTSum

0

 

 

 

 

 

 

 

 

ValueType

Returns CRFieldValueType (see table below), which specifies the

Read only

 

“type” of value found in the field.

 

 

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

Crystal Report Engine Object Model for the Automation Server

371

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