Beginner's Primer for Jaspersoft Studio (i)

Source: Internet
Author: User
Tags blank page

Objective

Recent work related to the Enterprise report generation function, so I want to use this blog to record my learning process. Enter the official website of the Jasperreport Project found a software called Jaspersoft Studio, its version is also 6.3.1 with the jar package version of the same, Baidu just know ireport is no longer updated version, and now instead of Jaspersoft Studio was developed, the software was developed based on Eclipse, and of course open source is free. Next, start my study record.

Preparatory work
To the Jasperreport development company official website Jaspersoft Community Download the jar package, it is best to download the project package, as well as the template development software Jaspersoft Studio.

Report generation Process

1. JRXML: The report fills the template, essentially an XML.
2. Jasper: A binary file compiled by the Jrxml template for the code to populate the data.
3. Jrprint: When the data is populated with the Jasper, the resulting file is used to output the report.
4. Exporter: Decide what format to export the report to, and the management class for report output.
5. Jasperreport can output various formats of the report file, the common Html,pdf,xls and so on.

Template generation: JRXML

The first step, open Jaspersoft, right-click to select Jasper Report, create a simple reporting file

Select a report template, here I choose the simplest blank page, in order to facilitate printing, the size of the choice of A4 paper size. The report page size can also be set manually according to your own needs, will be explained later.

Click Next and a page appears where you can name your report and click Next

Then we get to the page that sets up the data source, because I'm using a MySQL database, so I chose Database JDBC Connection.

The next page is the database link settings, the database name, user name, password here will not repeat. It is important to note that you need to add a database driver

Add the following results:

Then click Finish, the following page appears, on the left is the database and table, the right is the database statement writing area.

Report Build Page

Click Finish and a simple report document is built. The next step is to populate the report with data, as well as some landscaping work.

This blog is here, specific document design, see the basics of getting started two.

Beginner's Primer for Jaspersoft Studio (i)

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.