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

TestConnectivity

The TestConnectivity method tests to see if the database can be logged on to with the current information and if the database table can be accessed by the report.

Syntax

object.TestConnectivity

Returns

TRUE if the database session, logon, and location information are all correct.

FALSE if something is wrong.

DatabaseTables Collection

The DatabaseTables Collection is a collection of DatabaseTable objects. A DatabaseTable object exists for every database object (that is, table, query, stored procedure, etc.) accessed by the report. Access a specific DatabaseTable Object, Page 305, in the collection by using the Item property.

DatabaseTables 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 database objects in the collection.

Read only

Item

Returns DatabaseTable Object (page 305). Item has an index

Read only

 

parameter that can be either a string reference to the table, (that is,

 

 

Item(“Catgories”)) or a numeric, 1-based index (that is, 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.

 

Parent

Reference to the Parent object (Database Object (page 299)).

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

Remarks

Instead of using the Item property as shown, you can reference a table directly (for example, DatabaseTable(“Categories”) or DatabaseTable(1)).

Crystal Report Engine Object Model for the Automation Server

309

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