PacktLib: JasperReports for Java Developers

JasperReports for Java Developers

Credits

About the Author

Preface

An Overview of JasperReports

Brief History of JasperReports

What is JasperReports?

The JasperReports Open-Source License

Features of JasperReports

Class Library Dependencies

Typical Workflow

Where to Get Help?

Summary

Adding Reporting Capabilities to Java Applications

Downloading JasperReports

JasperReports Class Library

Summary

Creating a JRXML Report Template

Generating the Report

Displaying Reports on a Web Browser

Elements of a JRXML Report Template

Summary

Creating Dynamic Database Reports

Database for Our Reports

Generating Database Reports

Summary

Working with Other Datasources

Empty Datasources

Map Datasources

Java Objects as Datasources

TableModels as Datasources

XML as Datasource

Custom Datasources

Summary

Report Layout and Design

Controlling Report-Wide Layout Properties

Setting Text Properties

Setting a Report's Background

Adding Multiple Columns to a Report

Grouping Report Data

Report Expressions

Report Variables

Stretching Text Fields to Accommodate Data

Laying Out Report Elements

Using the Element

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 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

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 Spring

Integrating JasperReports with JavaServer Faces

Integrating JasperReports with Struts

Summary