ComponentOne VSView Reporting Edition
DataSource Property

Returns the current report's DataSource object.

Syntax

val% = [form!]VSReport.DataSource

Remarks

The DataSource Object is responsible for providing the data for the report. It encapsulates an ADO recordset and has the following properties:

 

ConnectionString

Database that contains the report data.

RecordSource

Table or SQL statement used to generate the recordset.

Filter

Condition used to filter records that are added to the recordset.

MaxRecords

Maximum number of records to retrieve (zero means no limit).

Recordset

ADO Recordset object that contains the report data. The Recordset may be retrieved while the report is being generated, and it may be set when handling the OnOpen event.

FieldInfo

Array containing field names, types, and maximum length. This array may be retrieved even if the Recordset is no open, and is useful for designer-type applications.

 

Data Type

IDataSource

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback