Example
The work flow in jasper-reports is:
- Design the report, create the jrxml file that defines the report layout. The jrxml can be create by using a simple texteditor but normally an IDE (JasperSoft Studio or iReport) is used both to speed up report development but also to have a visual view of layout.
- Compile the report (the jrxml) to get a .jasper file or a JasperReport object. This process can be compared with a
.java
file being compiled to .class
.
- Fill the report, pass parameters and a datasource to the report to generate the print object JasperPrint that can also be saved to a
.jprint
file
- View, print and/or export the JasperPrint. The most commons export format are supported as pdf, excel, word, html, cvs etc.