BackPrevious Page Next PageNext

Data Source Connections

Before you can create reports in JReport Designer, you need to set up a connection to allow JReport Designer to retrieve data from your data source for the reports. If you are using SQL queries JReport needs to import the database schema, which allows JReport to run the queries that provide the data for reports. Connections are defined, named, and stored in the catalog along with the reports and other resources that use them.

JReport is extremely efficient when working with data sources that are in a relational database (RDBMS). The Java Database Connectivity (JDBC) connections are the basic approaches for connecting to a database for data. Other data source types can also be accessed.

This chapter describes the following categories of connection-related tasks:

See an example: The SampleComponents catalog, included with JReport Designer, contains reports that have examples of different data source connections. Open the following report to see the connection examples: <install_root>\Demo\Reports\SampleComponents\DataSourceConnections.cls.

BackPrevious Page Next PageNext