万本电子书0元读

万本电子书0元读

顶部广告

JasperReports for Java Developers电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:David R. Heffelfinger

出  版  社:Packt Publishing

出版时间:2006-08-04

字       数:207.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is a concise and practical guide aimed at getting the results you want as quickly as possible. This book is for Java developers who want to create rich reports for either the web or print, and want to get started quickly with JasperReports to do this. No knowledge of JasperReports is presumed, although obviously familiarity with Java, SQL, and XML are assumed where they are required.
目录展开

JasperReports for Java Developers

Table of Contents

JasperReports for Java Developers

Credits

About the Author

Preface

What This Book Covers

What You Need for This Book

Conventions

Reader Feedback

Customer Support

Downloading the Example Code for the Book

Errata

Questions

1. An Overview of JasperReports

Brief History of JasperReports

What is JasperReports?

The JasperReports Open-Source License

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

2. Adding Reporting Capabilities to Java Applications

Downloading JasperReports

Setting Up Our Environment

JasperReports Class Library

Required Libraries for Report Compilation

Jakarta Commons

Jakarta Commons Digester

Jakarta Commons Collections

Jakarta Commons Logging

Jakarta Commons BeanUtils

Optional Libraries and Tools

Apache ANT

JDT Compiler

JDBC Driver

iText

JFreeChart

Jakarta POI

Summary

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

4. Creating Dynamic Database Reports

Database for Our Reports

Generating Database Reports

Embedding SQL Queries into a Report Template

Generating the Report

Modifying a Report Query via Report Parameters

Database Reporting via a Datasource

Database Report Methods Compared

Summary

5. Working with Other Datasources

Empty Datasources

Map Datasources

Java Objects as Datasources

TableModels as Datasources

XML as Datasource

Custom Datasources

Writing a Custom JRDataSource Implementation

Using the Custom JRDataSource Implementation

Summary

6. Report Layout and Design

Controlling Report-Wide Layout Properties

Setting Text Properties

Styles

Setting Text Style for Individual Report Elements

Setting Styles for Text Segments

Setting a Report's Background

Adding Multiple Columns to a Report

A Few Things about Report Columns

Grouping Report Data

Report Expressions

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

Using the <frame> Element

Hiding Repeated Values

Subreports

Summary

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

Adding Charts to a Report

Attributes of the <chart> Element

customizerClass

evaluationGroup

evaluationTime

isShowLegend

Chart Customization

Chart Datasets

Attributes of the <dataset> Element

incrementType

incrementGroup

resetType

resetGroup

Plotting Charts

Attributes of the <plot> Element

backcolor

backgroundAlpha

foregroundAlpha

orientation

Pie Charts

Bar Charts

XY Line Charts

Other Types of Charts

Summary

8. Other JasperReports Features

Report Localization

Scriptlets

Crosstabs

<columnGroup>

<crosstabCell>

<crosstabDataset>

<crosstabParameter>

<measure>

<parametersMapExpression>

<reportElement>

<rowGroup>

<whenNoDataCell>

Subdatasets

Adding Hyperlinks and Anchors to Reports

Bookmarks

Handling Very Large Reports

Summary

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

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

Adding Images to a Report

Adding Multiple Columns to a Report

Grouping Report Data

Adding Charts to a Report

Help and Support

Summary

11. Integrating JasperReports with other Frameworks

Integrating JasperReports with Hibernate

Integrating JasperReports with Spring

Integrating JasperReports with JavaServer Faces

Integrating JasperReports with Struts

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部