Table of Contents
Preface
Chapter 1: An Overview of JasperReports
Chapter 2: Adding Reporting Capabilities to our Java Applications
Chapter 3: Creating your First Report
Chapter 4: Creating Dynamic Reports from Databases
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
- Chapter 1: An Overview of JasperReports
- A brief history of JasperReports
- What exactly is JasperReports?
- The features of JasperReports
- Flexible report layout
- Multiple ways to present data
- Multiple ways to supply data
- Multiple datasources
- Watermarks
- Subreports
- Exporting capabilities
- Class library dependencies
- Typical workflow
- Where to get help
- Summary
- Chapter 2: Adding Reporting Capabilities to our Java Applications
- Downloading JasperReports
- Setting up our environment
- JasperReports class library
- Required libraries for report compilation
- Apache Commons
- Optional libraries and tools
- Apache ANT
- JDT compiler
- JDBC driver
- iText
- JFreeChart
- JExcelApi
- Required libraries for report compilation
- Summary
- Downloading JasperReports
- 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
- Previewing the compiled report template
- Compiling a JRXML template through ANT
- Generating the report
- Viewing the report
- Displaying reports in a web browser
- Elements of a JRXML report template
- <property>
- <import>
- <template>
- <style>
- <subDataset>
- <parameter>
- <queryString>
- <field>
- <sortField>
- <variable>
- <filterExpression>
- <group>
- <background>
- <title>
- <pageHeader>
- <columnHeader>
- <detail>
- <columnFooter>
- <pageFooter>
- <lastPageFooter>
- <summary>
- <noData>
- Summary
- Creating a JRXML report template
- Chapter 4: Creating Dynamic Reports from Databases
- Database for our reports
- Generating database reports
- Embedding SQL queries into a report template
- Generating the report
- Modifying a report query through report parameters
- Database reporting through a datasource
- A comparison of database report methods
- Summary
- Chapter 5: Working with Other Datasources
- Empty datasources
- Map datasources
- Java objects as datasources
- TableModels as datasources
- XML datasources
- CSV datasources
- Custom datasources
- Writing a custom JRDataSource implementation
- Using the custom JRDataSource implementation
- Summary
- Chapter 6: Report Layout and Design
- Controlling report-wide layout properties
- Setting text properties
- Styles
- Reusing styles through style templates
- Setting text style for individual report elements
- Styles
- Setting a report's background
- Report expressions
- Adding multiple columns to a report
- Final notes about report columns
- Grouping report data
- Report variables
- Built-in report variables
- Stretching text fields to accommodate data
- Laying out report elements
- Setting the size and position of a report element
- Setting common element properties
- Hiding repeated values
- Subreports
- Summary
- Chapter 7: Adding Charts and Graphics to Reports
- Adding geometrical shapes to a report
- Adding lines to a report
- Adding rectangles to a report
- Adding ellipses to a report
- Adding images to a report
- Attributes of the <image> element
- evaluationTime
- evaluationGroup
- hAlign
- vAlign
- IsLazy
- isUsingCache
- onErrorType
- Attributes of the <image> element
- Adding charts to a report
- Attributes of the <chart> element
- customizerClass
- evaluationGroup
- evaluationTime
- isShowLegend
- Chart customization
- Chart datasets
- Attributes of the <dataset> element
- Plotting charts
- Attributes of the <plot> element
- Pie charts
- Bar charts
- XY line charts
- Other types of charts
- Attributes of the <chart> element
- Summary
- Adding geometrical shapes to a report
- Chapter 8: Other JasperReports Features
- Report localization
- Scriptlets
- Crosstabs
- Crosstab subelements
- <columnGroup>
- <crosstabCell>
- <crosstabDataset>
- <crosstabParameter>
- <measure>
- <parametersMapExpression>
- <reportElement>
- <rowGroup>
- <whenNoDataCell>
- Crosstab subelements
- Subdatasets
- Adding hyperlinks and anchors to reports
- Turning chart items into hyperlinks
- Bookmarks
- Handling very large reports
- Summary
- Chapter 9: 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
- Chapter 10: Graphical Report Design with iReport
- Obtaining iReport
- Setting up iReport
- Creating a database report in record time
- Tweaking the generated report
- Creating a report from scratch
- Creating more elaborate reports
- Adding images to a report
- Adding multiple columns to a report
- Grouping report data
- Adding charts to a report
- Help and support
- Summary
- Chapter 11: 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



