Tips for using ireport

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.