Before customizing your report, you need to configure a new datasource for the reporting PostgreSQL database within iReport. You only need to perform this step once.
Launch iReport, if you have not done so already.
Click the
button on the main toolbar to open the Connections/Datasources dialog box.Click the
button to open the Datasource dialog box.Select
and click to advance to the Database JDBC connection page.Configure the PostgreSQL JDBC connection:
Select the
JDBC driver.Specify the database URL to your database (
).Supply your database username and password.
Click the
button to test your database connection:Click
to close the message box.Save the database connection information.
Close the JDBC configuration dialog box.