forward from
http://www.javaresearch.org/forum/thread.jsp?column=316&thread=14374
1 Let's take a look at the three Ireport and JasperReport on http://plateau.sicool.com/main.html Integration Development Reporting Wizard (1) (2) (3) After reading the understanding and running, OK, you got started 2 Go to find one of the JasperReportsultimateGuide.1.0.pdf After reading, you will learn about the basic processes and principles generated by JasperReport, which also answered many questions on the Questions of the Tools that have just contacted this report 3 forums. Many experiences and questions about JasperReport and Ireport, so everyone may wish to override the post on the forum, many of you can find answers, and a lot of valuable experiences, of course, the most authenticity of the forum is still https://sourceforge.net/projects/ireport/https://sourceforge.net/projects/jasperreports/ You can go to SourceForge.net to see, the search is available, you can also turn to a lot of things, by the way, practice you English 4 Learning JasperReport's Samples Decompression JasperReports-0.5.0-Project.zip After Directory JasperReports / Demo / Samples, see these examples, the best way to upgrade the ability to improve this report tool, I will A brief description of each example is attached to the following. To run the example under Sample, first you have to install Ant, and set a good environment variable such as the Ant_Home value to D: / install / Ant161 and then go to a SAMPLE directory, such as JasperReports / Demo / Samples / AlterDesign Running Ant in the directory, compiling report files, running Ant View, what is the reference 5 is better than the above? Just JasperReport source code, read the source code, JasperReport is in your mind, you want to do anything, optimize the code, overwrite, inherit his class, achieve personalized features, and you can refer to him Thought, sublimation, be a statement of your own
1. ALTERDESIGN This example demonstrates how to perform report compilation, how to dynamically control the elements, such as letting a rectangular discoloration or other 2. AntCompile demonstrate how to compile Ant 3. CHART Demo how to add it in the report Image, JasperReport is added to the report in the report by Scriptlet, and the scriptlet is called the API of JFreeChart, which is also an open source, to generate a graphic, go to JFreeChart, the tool's graphics generation is also very strong 4. DataSource demonstrate how Use various data sources in the report, you can use BeanArrayBeanCollection, or use custom data sources, as long as JRDataSource's two interfaces, this can provide very flexibility to users, and the data data is not limited to one SQL statement You can also use the stored procedure, which can be sorted, second retrieval, etc. 5. Fonts in the generation of data can also be sorted, secondary retrieval, and so on 6. Horizontal demonstrates the report of the horizontal column. It also uses TextFieldExpression, just like the effect of the IF statement. 7. HyperLink demonstrates links to various styles. 8. Images demonstrate how to add images and images in the report 9. Jasper demonstrates The report of the column is used for 2 game 10. JCHARTS demonstrates the addition of an Open source API JCHARTS to come to the report. The principle is above Chart. If JFreeChart can't satisfy your analysis of graphics, then Jcharts Looking for it, maybe there is 11. Landscape demonstration of the landscape 12. NopageBreak demonstrates, for example, in the way in IE prints out the contents of the report, you can also understand how the report output is configured 13. Noreport demonstrated how Generate JasperPrint objects directly through the Java program 14. Noxmldesign demonstrates how to generate a report directly through the Java program to generate a JasperDesign object. According to this example, the user can make a self-defined report, of course, more trouble, and definitely Supplementing his API library (JasperReport is really powerful, huh, huh) 15. PDFENCrypt demonstrates the output method of PDF, which can add code to the PDF file, in fact, the parameter configuration of the PDF output mode, specifically those parameters can be configured, go see the API Bar 16. PR INTService demonstrates how to directly print report 17. Query demonstrates how to make the query SQL dynamically, such as the SQL of the SQL, or even the entire SQL statement 18. Rotation demonstrates the text portrait display through a JSP page. 19. scriptlet report demonstrates how inheritance JRDefaultScriptlet, and add their own processing statements, but this function is very powerful, oh, look at these interfaces beforeReportInit () afterReportInit () beforePageInit () afterPageInit () beforeColumnInit () afterColumnInit () beforeGroupInit ( String groupname) Aftergroupinit (String Groupname) Take a look at these names, you can complete those features, such as displaying a column data, follow the column data analysis graphics,
Of course, you can also add your own way and call 20. Shape demonstrate the graphics from JasperReport, and the configured parameters. Of course, you can also override or override the API in JasperReport to generate the graphics, 21 Stretch demonstrates how to deal with data stretching in the report and bring stretching around the lines and boxes, you can learn that although the black-frame form is not a default manner in JasperReport, it is not difficult to implement 22 in JasperReport. Subreport demonstrates sub-reports, and tells you that there are N sub-reports in a report, and you can nest in the sub-report 23. TableOfContents demonstrate how to generate a directory, complex report 24. Unicode demonstrates various characters. Encoding 25. WebApp demonstrates how to put the report in a JavaWeb project, you can use the JSP ServletApplet, the author makes a parameter page, you can choose the report of the HTML PDF Applet output mode, interested, I can put the code in the back
Here are some supplementary content: Overview JasperReport is http://www.sourceforge.Net on an excellent open source report tool, its powerful features and free features have been greatly recognized and praised, the latest version is JasperReport0 .6.1. The download address is https://sourceforge.net/projects/jasperreports/. Ireport is an IDE development tool for JasperReport, making JasperReport more easily, its latest version is Ireport0.3.2 support to JasperReport0.5.3, and JasperReport is also constantly updated. The download address is https://sourceforge.net/projects/ireport/. About Using these two tools to develop web reports, there are already a few very good materials:? JasperReport and Ireport configuration and use .pdf (this document can be used to get started with these two tools)? ThejasperReportsultimateGuide.1.0.pdf (This is a charged document, which tells the principles of JasperReport generated. If you plan to use JasperReport this report tool, you need to see this English information)? Http://www.javaresearch. ORG / Forum / Thread.jsp? Column = 316 & thread = 14374 (This is a introduction guide on the forum) The first time the first time is always more painful, using this report tool, the following is some of the operations I summed up. It is relatively prone to problems. My summary is based on Ireport0.3.2 JasperReport0.5.3 (no way, Ireport0.4.0 has not yet come out, 0.3.2 only supports JasperReport0.5.3). As for the combination of the two, I still feel relatively smooth. After downloading Ireport-0.3.2.zip, you should pay attention to it, pay attention to your JDK Tools.jar to the lib directory of the Ireport after you decompressed, the Chinese PDF report also needs to copy itextasian.jar Under LIB, if you use Oracle's database, then you need to copy class12.jar is also the Oracle's JDBC package to lib, other databases. It's ready to do it, run Ireport.bat. If it is more smooth, you should see the following screen, indicating that IREPORT has run successfully. If the DOS interface passes, there is no above interface, there is no success.