JasperReports for Java Developers

Create, Design, Format and Export Reports with the world's most popular Java reporting library
Preview in Mapt

JasperReports for Java Developers

David R. Heffelfinger

Create, Design, Format and Export Reports with the world's most popular Java reporting library
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


JasperReports for Java Developers Book Cover
JasperReports for Java Developers
$ 26.99
$ 18.90
JasperReports 3.5 for Java Developers Book Cover
JasperReports 3.5 for Java Developers
$ 26.99
$ 18.90
Buy 2 for $35.00
Save $18.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781904811909
Paperback344 pages

Book Description

JasperReports is the world's most popular embeddable Java open source reporting library, providing Java developers with the power to easily create rich print and web reports. This book shows you exactly how to get started, and develop the skills to get the most from JasperReports.

The book steers you through each point of report setup, to creating, designing, formatting, and exporting reports with data from a wide range of datasources, and integrating JasperReports with other Java frameworks.

Starting with the basics of adding reporting capabilities to your application, and creating report templates you will first see how to produce your reports through the use of JRXML files, custom ANT targets, and then see preview them in both the browser and the native browser of JasperReports.

Getting data into your reports is the next step, and you will see how to get data from a range of datasources, not only databases, but XML files, and Java Objects, among others.

You will create better looking reports with formatting and grouping, as well as adding graphical elements to the report. You will export your reports to a range of different formats, including PDF and XML.   

Creating reports will be made even easier with a walkthrough of the iReport Designer visual designing tool. To round things off, you will see how to integrate your reports with other Java frameworks, using Spring or Hibernate to get data for the report, and Java Server Faces or Struts for presenting the report.

Table of Contents

Chapter 1: 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
Chapter 2: Adding Reporting Capabilities to Java Applications
Downloading JasperReports
JasperReports Class Library
Summary
Chapter 3:
Creating a JRXML Report Template
Generating the Report
Displaying Reports on a Web Browser
Elements of a JRXML Report Template
Summary
Chapter 4: Creating Dynamic Database Reports
Database for Our Reports
Generating Database Reports
Summary
Chapter 5: Working with Other Datasources
Empty Datasources
Map Datasources
Java Objects as Datasources
TableModels as Datasources
XML as Datasource
Custom Datasources
Summary
Chapter 6: 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 <frame> Element
Hiding Repeated Values
Subreports
Summary
Chapter 7: Adding Charts and Graphics to Reports
Adding Geometrical Shapes to a Report
Adding Images to a Report
Adding Charts to a Report
Summary
Chapter 8: Other JasperReports Features
Report Localization
Scriptlets
Crosstabs
Subdatasets
Adding Hyperlinks and Anchors to Reports
Handling Very Large Reports
Summary
Chapter 9: 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
Chapter 10: 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
Chapter 11: Integrating JasperReports with other Frameworks
Integrating JasperReports with Hibernate
Integrating JasperReports with Spring
Integrating JasperReports with JavaServer Faces
Integrating JasperReports with Struts
Summary

What You Will Learn

  • Overview of JasperReports, and what it can do for you
  • Adding reporting capabilities to your application
  • Creating and formatting reports
  • Report layout and design
  • Working with database datasources
  • Working with other types of datasource such as arrays, collections, TableModels and XML
  • Creating subreports
  • Adding charts and graphics to a report
  • Working with the iReport report designer
  • Exporting reports to PDF, Excel spreadsheet or Word document format
  • Integrating JasperReports with other Java frameworks like Spring, Java Server Faces, Struts, and Hibernate

Authors

Table of Contents

Chapter 1: 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
Chapter 2: Adding Reporting Capabilities to Java Applications
Downloading JasperReports
JasperReports Class Library
Summary
Chapter 3:
Creating a JRXML Report Template
Generating the Report
Displaying Reports on a Web Browser
Elements of a JRXML Report Template
Summary
Chapter 4: Creating Dynamic Database Reports
Database for Our Reports
Generating Database Reports
Summary
Chapter 5: Working with Other Datasources
Empty Datasources
Map Datasources
Java Objects as Datasources
TableModels as Datasources
XML as Datasource
Custom Datasources
Summary
Chapter 6: 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 <frame> Element
Hiding Repeated Values
Subreports
Summary
Chapter 7: Adding Charts and Graphics to Reports
Adding Geometrical Shapes to a Report
Adding Images to a Report
Adding Charts to a Report
Summary
Chapter 8: Other JasperReports Features
Report Localization
Scriptlets
Crosstabs
Subdatasets
Adding Hyperlinks and Anchors to Reports
Handling Very Large Reports
Summary
Chapter 9: 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
Chapter 10: 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
Chapter 11: Integrating JasperReports with other Frameworks
Integrating JasperReports with Hibernate
Integrating JasperReports with Spring
Integrating JasperReports with JavaServer Faces
Integrating JasperReports with Struts
Summary

Book Details

ISBN 139781904811909
Paperback344 pages
Read More

Read More Reviews

Recommended for You

Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
iReport 3.7 Book Cover
iReport 3.7
$ 23.99
$ 16.80
jQuery UI 1.7: The User Interface Library for jQuery  Book Cover
jQuery UI 1.7: The User Interface Library for jQuery
$ 26.99
$ 18.90
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Expert PHP 5 Tools Book Cover
Expert PHP 5 Tools
$ 29.99
$ 21.00
Groovy for Domain-Specific Languages Book Cover
Groovy for Domain-Specific Languages
$ 26.99
$ 18.90