JasperReports for Java Developers
  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
  Index > Chapter 3
Book Contents

Preface
Chapter 1: An Overview of JasperReports
Chapter 2: Adding Reporting Capabilities to Java Applications
Chapter 3: Creating Your First Report
Chapter 4: Creating Dynamic Database Reports
Chapter 5: Working with Other Datasources
Chapter 6: Report Layout and Design
Chapter 7: Adding Charts and Graphics to Reports
Chapter 8: Other JasperReports Features
Chapter 9: Exporting to Other Formats
Chapter 10: Graphical Report Design with iReport
Chapter 11: Integrating JasperReports with other Frameworks

Index

Free Content
Download Sample Chapter 4: Creating Dynamic Database Reports
[1 MB PDF]

Chapter 3: Creating Your First Report

The first step when creating a report is to create a JRXML template. As mentioned in Chapter 1, JasperReports JRXML templates are standard XML files. However, by convention, they have an extension of .jrxml, and are referred to as JRXML files or JRXML templates. All JRXML files contain a <jasperReport> root element that can contain many sub-elements. All of these sub-elements are optional. Since our goal for this chapter is to get a feel of how to design a report, we will obviate most of the <jasperReport> sub-elements. We will use only one sub-element, namely the <detail> sub-element.

  • Chapter 3: Creating Your First Report
    • Creating a JRXML Report Template
      • Previewing the XML Report Template
      • Creating a Binary Report Template
        • Compiling a JRXML Template Programmatically
        • Compiling a JRXML Template through ANT
    • Generating the Report
      • Viewing the Report
    • Displaying Reports on a Web Browser
    • Elements of a JRXML Report Template
      • <property>
      • <import>
      • <reportFont>
      • <parameter>
      • <queryString>
      • <field>
      • <variable>
      • <group>
      • <background>
      • <title>
      • <pageHeader>
      • <columnHeader>
      • <detail>
      • <columnFooter>
      • <pageFooter>
      • <lastPageFooter>
      • <summary>
    • Summary
 

 

Paperback 344 pages
Released: August 2006
ISBN: 1904811906

 

eBook Version Also Available
Buy the book & eBook together and get 80% off the eBook

     

 




View the book details
on PacktPub.com

 


  

 

  This website is owned and maintained by Packt Publishing Ltd, 2006. All rights reserved. Terms and Conditions