PacktLib: JasperReports 3.5 for Java Developers

JasperReports 3.5 for Java Developers

Credits

About the Author

About the Reviewers

Preface

An Overview of JasperReports

A brief history of JasperReports

What exactly is JasperReports?

The features of JasperReports

Class library dependencies

Typical workflow

Where to get help

Summary

Adding Reporting Capabilities to our Java Applications

Downloading JasperReports

JasperReports class library

Summary

Creating your First Report

Creating a JRXML report template

Creating a binary report template

Generating the report

Elements of a JRXML report template

Summary

Creating Dynamic Reports from Databases

Database for our reports

Generating database reports

Summary

Working with Other Datasources

Empty datasources

Map datasources

Java objects as datasources

TableModels as datasources

XML datasources

CSV datasources

Custom datasources

Summary

Report Layout and Design

Controlling report-wide layout properties

Setting text properties

Setting a report's background

Report expressions

Adding multiple columns to a report

Grouping report data

Report variables

Stretching text fields to accommodate data

Laying out report elements

Setting common element properties

Hiding repeated values

Subreports

Summary

Adding Charts and Graphics to Reports

Adding geometrical shapes to a report

Adding images to a report

Adding charts to a report

Summary

Other JasperReports Features

Report localization

Scriptlets

Crosstabs

Subdatasets

Adding hyperlinks and anchors to reports

Handling very large reports

Summary

Exporting to Other Formats

Exporting overview

Exporting to PDF

Exporting to RTF

Exporting to ODT

Exporting to Excel

Exporting to HTML

Exporting to XML

Exporting to CSV

Exporting to plain text

Directing HTML reports to a browser

Summary

Graphical Report Design with iReport

Obtaining iReport

Setting up iReport

Creating a database report in record time

Creating a report from scratch

Creating more elaborate reports

Help and support

Summary

Integrating JasperReports with Other Frameworks

Integrating JasperReports with Hibernate

Integrating JasperReports with JPA

Integrating JasperReports with Spring

Integrating JasperReports with JSF

Integrating JasperReports with Struts

Summary