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

Database Object Properties

Property

Description

Read/Write

 

 

 

 

 

 

Application

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

Read only

 

object is associated with.

 

 

 

 

Parameters

Returns DatabaseParameters Collection (page 304), which specifies

Read only

 

the database parameters used in the report.

 

 

 

 

Parent

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

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

Tables

Returns DatabaseTables Collection (page 309), which specifies the

Read only

 

database objects used in the report (that is, an Access report may

 

 

contain a query or an SQL Server report may be based on a stored

 

 

procedure; if so, they will be returned as part of this collection, along

 

 

with the database table used in the report).

 

Database Object Methods

Verify

The Verify method verifies that the location of the database is still valid and checks to see if any changes have been made to table design, etc. If there are any changes to the database, the Verify method will update the report automatically to reflect these changes.

Syntax

object.Verify

DatabaseFieldDefinition Object

The DatabaseFieldDefinition Object represents a database field used in the report. This object provides properties for getting information on database fields in the report.

Crystal Report Engine Object Model for the Automation Server

300

Database FieldDefinition Object Properties

Property

Definition

Read/Write

 

 

 

 

 

 

 

 

Application

Returns a reference to the Application Object (page

Read only

 

290), that this object is associated with.

 

 

 

 

 

DatabaseFieldName

Specifies the name of the field in the database (that is,

Read only

 

Product ID).

 

 

 

 

 

Kind

Returns CRFieldKind, which specifies what “kind” of

Read only

 

field (that is, database, summary, formula, etc.).

 

 

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

 

 

crDatabaseField

1

 

 

 

 

 

crFormulaField

2

 

 

 

 

 

crGroupNameField

5

 

 

 

 

 

crParameterField

6

 

 

 

 

 

crSpecialVarField

4

 

 

 

 

 

crSummaryField

3

 

 

 

 

Name

Returns the name of the field within the report

Read only

 

(table.FIELD) (for example, product.PRODUCT ID).

 

 

 

 

 

NumberOfBytes

Returns the number of bytes required to store the field

Read only

 

data in memory.

 

Parent

Reference to the Parent object (Report Object (page

Read only

 

349)).

 

 

 

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

 

TableAliasName

Specifies the alias name used in the report to reference

Read only

 

the database table. By default, this is the name of the

 

 

database table.

 

 

 

 

 

ValueType

Returns CRFieldValueType (see table below) which

Read only

 

specifies the “type” of value found in the field.

 

 

 

 

 

 

 

 

 

 

Constant

 

Value

 

 

 

 

 

 

 

 

 

crBitmapField

 

17

 

 

 

 

 

crBlobField

 

15

 

 

 

 

 

crBooleanField

 

9

 

 

 

 

 

crChartField

 

21

 

 

 

 

 

crCurrencyField

 

8

 

 

 

 

 

crDateField

 

10

Crystal Report Engine Object Model for the Automation Server

301

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