Installing Birt plug-ins and basic tutorials in eclipse

Source: Internet
Author: User

These days due to the needs of the company's projects, the need for production reports, our company is using CS client mode, the main use of JFrame to do the client, now need to do the report, so need to nest a browser inside the client, and then use Birt to make the report, so there are the following articles, Originally thought that this installation Birt plug-in is a very easy thing, but did not think of IS, Baidu for a long time, there is no link to install the specific method, or plug-in package can not find (official website is not found, may be my English is not good, not see), or is installed without effect, of course, The Eclipse official website already has the IDE which integrates the Birt plug-in, but I this person must be serious, do not want to use them already integrated well, I have to follow the link mode to install the plugin (yes, I am the legend of a rib ...). Below, the steps for integration are described below:

The first step: to the official website to download the integrated All-in-one that package, the address is as follows Birt, after the download package is:eclipse-reporting-mars-r-win32-x86_64.zip, After the decompression inside is the Eclipse file directory, we only use the plugins and features to extract, make Birt link plug-in can, as for link installation method is actually very simple, the advantage is that it is convenient for us to call the plug-in, Even if we re-install eclipse later, we just need to re-write a. Link configuration file, you do not need to re-download the plugin, reinstall. (The following installation method takes my computer as an example)

Start by creating a new Birt folder under the disk where the Eclipse software is located, creating a new folder named Eclipse under the Birt folder to store the Birt plug-in, Eclipse-reporting-mars-r-win32-x86_64.zip the extracted plugins and features two folders to the/birt/eclipse folder;

Then, for the Eclipse configuration work, create a new folder in Eclipse's installation directory folder, named links,

Configure a Birt.link file in the Links folder, as follows:

Finally restart Eclipse, if the new-"Others, you can see the following page to indicate the success of the installation:

The above is the first step, the integration Birt plug-in, Next is the production of reports

Step two: Make the report:

First on the package explore page

1. Create a new report project,

Click File to select New and select Other, the following dialog box appears, select Report Project, click Next, enter the project name, finish

After you create the report, the next step is to create a report that creates a new report:

So you can get an empty report,

2. Next Design the report:

(1), configure the data source, palette is the design of the foreground interface style, Dataexplorer is the configuration data source, the result set and so on

Right-click the data source to create a new datasource, select JDBC Data source, click Next

So that the data source is created successfully,

(2), next complete the configuration of the data set, right-click Datasets Create a new result set

If the database name is written on the URL of the connection database, the SQL does not need to write the database name.

Click Finish to finish, the Output column window appears, you can click on preview results display the query results set. If the result set is normal, the configuration is complete and the foreground interface can be designed.

(3) (Click Palette, click on the report items, find table to drag directly to the right window, click on the Date Explorer, click Data sets, you can drag the field to the table) double-click the table will query the result set, Select the number of rows you want based on the result set you are querying. Populate the table's data detail row with the column name of the result set. (Remember, when inserting a table, the data set must select the dataset that you configured.) )

In the first row of the table, each inside add the lable tag to fill in the query out the name of the label, the second row to add the data tag, click into the expression here Click FX, fill in the result set: My result set is as follows:


Last completed, after saving, access the report by address

button to run the report:


The results are as follows:


The last of the final: is summed up, the above is a simple report making and Birt Integration tutorial, more in-depth tutorial, slowly study to go, the beginning of the foot, life lies in constant struggle ....

PS: Today is Valentine's Day (Tanabata), in this wish all the lovers finally married, single quick take off single, I wish you a happy holiday, donkey, happy Holidays!


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Installing Birt plug-ins and basic tutorials in eclipse

Related Article

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.