Birt report Integration in an open source project Jeesite Project

Source: Internet
Author: User

Because the business needs to contact some open source reports, because this demand is not very large, and small projects can not directly buy dry, sail soft report, etc., recently began to study the open-source chart development.

1.JFreeChart Advantages on-line example code, easy to use, the shortcomings generated by some of the chart is not clear, pure coding, not intuitive.

2.BIRT report, Birt Report is an open source project provided by IBM, the advantages: large companies to provide, quality trustworthy, but also have integrated in the Eclipse development tools, intuitive and convenient, and other reports used in the design of the idea is not very different, you can generate complex charts. The biggest benefit is that it can be embedded directly into the Javaweb project that has been developed.

Design ideas: Create a new chart, create a new data source, create a new dataset, and bind the dataset to the relationship between the charts, and you can preview it directly. After the preview, copy the. rptdesign suffix file to your Javaweb project, and then the officer online download Birt-runtime-4_4_1-20140916.zip is the runtime example, I use the 4.4 version of the decompression after two folders : Reportengine and Webviewerexample. Open Webviewerexample to copy the following resource files to your own project,   The main thing is to merge Web-inf the following Web. xml file, copy the Webviewerexample web-inf below the Web. XML content into your own Javaweb project's Web. xml file, and launch Tomcat on the example to access it in three ways :

<p><a href= "<%= request.getcontextpath () +"/frameset?__report=report/chartreport1.rptdesign& Sample=my+parameter "%>" >view frameset</a>
<p><a href= "<%= request.getcontextpath () +"/preview?__report=report/chartreport1.rptdesign&sample =my+parameter "%>" >view preview </a>
<p><a href= "<%= request.getcontextpath () +"/run?__report=report/chartreport1.rptdesign&sample=my+ Parameter "%>" >view run </a>

The preview mode is the fastest access.


Birt report Integration in an open source project Jeesite Project

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.