Crystal Reports can report off virtually any kind
of data source, including persistent sources such as databases and XML files,
and runtime sources such as object collections. Using the ReportClientDocument
object model, you can programmatically access and change the connection
information to these data sources for the report file.
This section explains how to use the
DatabaseController class to
interact with the data sources in a report.
Classes used for connecting to data
sources
com.crystaldecisions.sdk.occa.report.application.DatabaseController
Retrieves current data source connections,
sets new data source connections for the tables in a report, and adds runtime
data sources.
com.crystaldecisions.sdk.occa.report.data.ConnectionInfos
Contains
IConnectionInfo objects
representing each connection in the report to a specific data source.
com.crystaldecisions.sdk.occa.report.data.Tables
Contains
ITable
objects representing each table in the report. Each table has a
IConnectionInfo object
representing a valid data source connection.