In Jasper report we need to database connectivity, using that we creating an report. I tell you step by step, how to connect with database.
1.
In the tool bar you see the combo box, which display an already existing database connectivity list.
2.
To create an new database connection click on Report Datasource button display in toolbar.
3.
Which display an popup window as show below. To create new Datasource connectivity click on New button.
4.
Then select you type of datasource. For JDBC connection select Database JDBC connection.
5.
Then Enter your Database connection name you want. Select JDBC Driver for databse like MySQL, Access, MSSQL ......
Enter Connection String in URL field, Enter username and password if any and check save password checkbox. Test Connection using Test Button and Save your connection.
6
Finally you find you Database connection into combo-box which are in tool bar. When you creating an report make sure that proper connection is selected.
No comments:
Post a Comment