Tips for using ireport
Connect to database |
Switch the browser |
Make PDF support Chinese |
Http://p.blog.csdn.net/images/p_blog_csdn_net/fengda2870/EntryImages/20081009/c.PNG
Connect to database |
1. Select connection/Data sources |
2. Click "new ". |
3. Select "database JDBC connection" and click "next>" |
4. Enter related data and click test. |
5. Open the report to connect to the database, Click "set active connection" |
6. Select the data source to connect Click "OK" |
7. Execute the SQL statement to query the data in the table. Click "REPORT query" |
8. Enter an SQL statement for query. |
9. In In the view, expand fields, select the fields for the report, and drag them to the report. |
Switch the browser |
Options -- settings |
|
After Compile and select the running type. |
Make PDF support Chinese |
1. Download related jar files from the website :Http://nchc.dl.sourceforge.net/itext/iTextAsian.jar |
2. Put the downloaded JAR file in the lib directory. |
3. Right-click the space to display Chinese characters and select Properties |
4. Set attributes |