JasperReports 3.5 for Java Developers (Paperback)
暫譯: Java 開發者的 JasperReports 3.5 (平裝本)

David Heffelfinger

  • 出版商: Packt Publishing
  • 出版日期: 2009-08-17
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 350
  • 裝訂: Paperback
  • ISBN: 1847198082
  • ISBN-13: 9781847198082
  • 相關分類: Java 程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

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

  • Create better, smarter, and more professional reports using comprehensive and proven methods
  • Group scattered data into meaningful reports, and make the reports appealing by adding charts and graphics
  • Discover techniques to integrate with Hibernate, Spring, JSF, and Struts, and to export to different file formats
  • Written in a lucid and practical manner, this book introduces you to JasperReports and gets you creating complex and elegant reports

In Detail

Do you want to create easily understood, professional, and powerful reports from disordered, scattered data using a free, open source Java class library? If your answer is yes, this book on JasperReports is what you are looking for. 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.

The book has been fully updated to use JasperReports 3.5, the latest version of JasperReports. Previously accepted techniques that have now been deprecated have been replaced with their modern counterparts. All examples in the book have been updated to use XML schemas for report templates. Coverage of new data sources that JasperReports now supports has been added to the book. Additionally, JasperReports can now export reports to even more formats than before and exporting reports to these new formats is covered in this new edition of the book.

This book shows you exactly how to get started, and develop the skills to get the most from JasperReports. It introduces you to the latest version of JasperReports, and gets you creating complex and elegant reports.

The book steers you through each point of report setup, to creating, designing, formatting, and exporting reports with data from a wide range of data sources, 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 preview them in both the web 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 data sources, 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 your reports. 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.

All examples have been updated to use XML schemas. New export formats, such as OpenDocument Text, and new data sources now supported by JasperReports are now covered in this updated edition.

What you will learn from this book?

  • Overview of JasperReports, and what it can do for you
  • Significantly reduce your report design time by using the iReport report designer
  • Add reporting capabilities to your Java applications
  • Learn to ease the task of report navigation by adding hyperlinks, anchors, and bookmarks to your reports
  • Learn techniques to tweak the report layout and design, and add charts and graphics to your report
  • Generate database reports and learn to embed SQL queries into your report definition
  • Work with data sources such as arrays, collections, TableModels, and XML
  • Simplify report designing by using the subreports feature that allows you to extract complex report sections into a separate report
  • Export your reports to PDF, Excel spreadsheet, or Word document format, and direct HTML reports to a browser
  • Integrate JasperReports with Java frameworks like Spring, Java Server Faces, Struts, and Hibernate

Approach

This book is a comprehensive and practical guide aimed at getting the results you want as quickly as possible. The chapters gradually build up your skills and by the end of the book you will be confident enough to design powerful reports. Each concept is clearly illustrated with diagrams and screen shots and easy-to-understand code.

Who this book is written for?

If you are a Java developer who wants to create rich reports for either the Web or print, and wants to get started quickly with JasperReports to do this, this book is for you. No knowledge of JasperReports is presumed.

商品描述(中文翻譯)

使用全球最受歡迎的 Java 報告庫來創建、設計、格式化和導出報告


  • 使用全面且經過驗證的方法來創建更好、更智能和更專業的報告

  • 將分散的數據組合成有意義的報告,並通過添加圖表和圖形使報告更具吸引力

  • 探索與 Hibernate、Spring、JSF 和 Struts 整合的技術,並導出到不同的文件格式

  • 本書以清晰且實用的方式介紹 JasperReports,幫助您創建複雜而優雅的報告

詳細內容

您是否想使用免費的開源 Java 類庫,從無序的分散數據中創建易於理解、專業且強大的報告?如果您的答案是肯定的,那麼這本關於 JasperReports 的書正是您所需要的。JasperReports 是全球最受歡迎的可嵌入式 Java 開源報告庫,為 Java 開發人員提供輕鬆創建豐富的打印和網頁報告的能力。

本書已全面更新至 JasperReports 3.5,即 JasperReports 的最新版本。之前接受的技術已被現代對應技術所取代。書中的所有示例均已更新為使用 XML 架構作為報告模板。新增了 JasperReports 現在支持的新數據源的內容。此外,JasperReports 現在可以導出到比以往更多的格式,這些新格式的導出在本書的新版本中有詳細介紹。

本書清楚地展示了如何開始使用 JasperReports,並發展出充分利用其功能的技能。它介紹了 JasperReports 的最新版本,並幫助您創建複雜而優雅的報告。

本書引導您完成報告設置的每個步驟,包括創建、設計、格式化和導出來自各種數據源的報告,並將 JasperReports 與其他 Java 框架整合。

從為您的應用程序添加報告功能和創建報告模板的基本知識開始,您將首先看到如何通過使用 JRXML 文件、自定義 ANT 目標來生成報告,然後在網頁瀏覽器和 JasperReports 的本地瀏覽器中預覽它們。

將數據導入報告是下一步,您將看到如何從多種數據源獲取數據,不僅僅是數據庫,還包括 XML 文件和 Java 對象等。

您將通過格式化和分組來創建更美觀的報告,並向報告中添加圖形元素。您將把報告導出到多種不同的格式,包括 PDF 和 XML。

使用 iReport Designer 視覺設計工具,創建報告將變得更加簡單。最後,您將看到如何使用 Spring 或 Hibernate 獲取報告數據,並使用 Java Server Faces 或 Struts 來呈現報告,將報告與其他 Java 框架整合。

所有示例均已更新為使用 XML 架構。新導出格式,如 OpenDocument Text,以及 JasperReports 現在支持的新數據源在本更新版本中都有涵蓋。

您將從本書中學到什麼?


  • JasperReports 概述及其能為您做什麼

  • 通過使用 iReport 報告設計器顯著減少報告設計時間

  • 為您的 Java 應用程序添加報告功能

  • 通過向報告中添加超鏈接、錨點和書籤來簡化報告導航任務

  • 學習調整報告佈局和設計的技術,並向報告中添加圖表和圖形

  • 生成數據庫報告並學習將 SQL 查詢嵌入報告定義中

  • 使用數據源,如數組、集合、TableModels 和 XML 進行工作

  • 通過使用子報告功能簡化報告設計,該功能允許您將複雜的報告部分提取到單獨的報告中

  • 將報告導出為 PDF、Excel 試算表或 Word 文檔格式,並將 HTML 報告直接導向瀏覽器

  • 將 JasperReports 與 Java 框架(如 Spring、Java Server Faces、Struts 和 Hibernate)整合

方法

本書是一個全面且實用的指南,旨在幫助您快速獲得所需的結果。各章節逐步提升您的技能,到本書結束時,您將有信心設計強大的報告。每個概念都用圖表、截圖和易於理解的代碼清晰地說明。

本書的讀者對象是誰?

如果您是一位希望為網頁或打印創建豐富報告的 Java 開發人員,並希望快速開始使用 JasperReports,那麼這本書適合您。不需要具備 JasperReports 的知識。