Jasper sessions

A JRXML has sections that are evaluated in different ways and at different times. The following diagram shows all the available sessions:

The different sections are as follows:

  • • Title: This is printed just one time
  • • Page Header: This is printed at the beginning of all printed pages
  • • Column Header: This is printed at the beginning of each detail column
  • • Detail: This is where every record read from the data source is printed
  • • Column Footer: This is printed at the end of each detail column
  • • Page Footer: This is printed at the end of all printed pages
  • • Summary: This is printed at the end of the report, and is often used to show calculations, totals, and summarizations in general

Jasper is a very flexible report solution that also allows us to run groovy scripts inside a Jasper report to do dynamic calculations as well as dynamic layouts. This is useful if you do not want to print a page given some condition, or based on what you have in the database, or you do not want to show some data.

Next, we will install Jaspersoft Studio and start creating reports for our application.

 
Source