Chapter 3. Creating your First Report

In this chapter, we will create, compile, and preview our first report.

At the end of this chapter, we will be able to:

  • Create simple JRXML report templates
  • Preview report templates by using JasperReports custom ANT targets
  • Generate jasper binary report templates by compiling JRXML files
  • Write code that will generate a report from a Jasper report template
  • View generated reports in JasperReports' native format, using tools provided by JasperReports
  • Generate reports that can be viewed in a web browser
  • Identify the JRXML elements corresponding to the different report sections

Creating a JRXML report template

When creating a report, the first step is to create a JRXML template. As we mentioned in Chapter 1, An Overview ...

Get JasperReports 3.5 for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.