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