The Definitive Guide to JasperReports

The JasperReports library is a very powerful and flexible report-generating tool that delivers rich content to the screen, printer, or file in PDF, HTML, RTF, XLS, ODT, CSV, or XML format. The library is written entirely in Java and can be used in a variety of Java-enabled applications, including...

Mô tả đầy đủ

Đã lưu trong:
Chi tiết về thư mục
Tác giả chính: Corporation, JasperSoft
Định dạng: Sách
Ngôn ngữ:English
Được phát hành: Apress 2013
Những chủ đề:
Truy cập trực tuyến:http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34886
Các nhãn: Thêm thẻ
Không có thẻ, Là người đầu tiên thẻ bản ghi này!
Thư viện lưu trữ: Thư viện Trường Đại học Đà Lạt
id oai:scholar.dlu.edu.vn:DLU123456789-34886
record_format dspace
institution Thư viện Trường Đại học Đà Lạt
collection Thư viện số
language English
topic Computer
spellingShingle Computer
Corporation, JasperSoft
The Definitive Guide to JasperReports
description The JasperReports library is a very powerful and flexible report-generating tool that delivers rich content to the screen, printer, or file in PDF, HTML, RTF, XLS, ODT, CSV, or XML format. The library is written entirely in Java and can be used in a variety of Java-enabled applications, including J2EE or web applications, to generate dynamic content. Its main purpose is to help to create page-oriented, ready-to-print documents in a simple and flexible manner. JasperReports, like most reporting applications, uses report templates structured in multiple sections, such as title, summary, detail, and page and group headers and footers. Each section has a free-form layout in which you can place various types of elements, including images, static and dynamic text fields, lines, and rectangles. The reporting engine uses this template to organize data in an XML file (JRXML) or to create it programmatically using the library’s API. This data may come from various data sources, including relational databases, collections, or arrays of Java objects or XML data. Users can plug the reporting library into custom-made data sources by implementing a simple interface. To fill a report with data, you must first compile the initial XML report template. Compilation validates the report template and attaches some compiler-related data to it. This data is used to evaluate the report expressions at runtime. The compiled report template can be serialized to store it on disk or sent over the network. This serialized object is then used when the application fills the specified report template with data. In fact, compiling a report template involves compiling all report expressions. Various verifications are made at compilation time to check report design consistency. The result is a ready-to-fill report template that is then used to generate documents on different sets of data. To fill a report template, the engine must receive the report data. This data may come in various forms. Some of this data can be passed in as report parameters, but most of it comes from the report’s data source. The reporting engine can directly receive special data source objects that provide the information for the report, or it can use a supplied JDBC connection object if the data is in a relational database. The result of the report-filling operation is a new object that represents the ready-to-print document. This object can also be serialized for storage on disk or network transfer. It can be viewed directly using the JasperReports built-in viewer or can be exported to other, more popular formats such as PDF, HTML, RTF, XLS, ODT, CSV, and XML. JasperReports is part of the JasperSoft Business Intelligence Suite, which is a comprehensive set of tools for integrated reporting, analysis, and data integration. In addition to JasperReports, the suite is comprised of iReport, an easy-to-use designer for JasperServer, JasperReports, and Jasper4Salesforce; JasperServer, a high-performance business intelligence and report server; JasperAnalysis, an OLAP engine to drill down and slice and dice data to explore causes, trends, patterns, anomalies, and correlations using a standard web browser; and JasperETL, a ready-torun data integration platform providing data extract-transform-load (ETL) capabilities. The JasperSoft Business Intelligence Suite began as a complete open source reporting and BI solution. Today, JasperSoft offers both open source and professional versions of the suite. The professional version includes JasperStudio™, the professional edition of iReport.
format Book
author Corporation, JasperSoft
author_facet Corporation, JasperSoft
author_sort Corporation, JasperSoft
title The Definitive Guide to JasperReports
title_short The Definitive Guide to JasperReports
title_full The Definitive Guide to JasperReports
title_fullStr The Definitive Guide to JasperReports
title_full_unstemmed The Definitive Guide to JasperReports
title_sort definitive guide to jasperreports
publisher Apress
publishDate 2013
url http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34886
_version_ 1757677556330397696
spelling oai:scholar.dlu.edu.vn:DLU123456789-348862014-01-20T01:33:58Z The Definitive Guide to JasperReports Corporation, JasperSoft Computer The JasperReports library is a very powerful and flexible report-generating tool that delivers rich content to the screen, printer, or file in PDF, HTML, RTF, XLS, ODT, CSV, or XML format. The library is written entirely in Java and can be used in a variety of Java-enabled applications, including J2EE or web applications, to generate dynamic content. Its main purpose is to help to create page-oriented, ready-to-print documents in a simple and flexible manner. JasperReports, like most reporting applications, uses report templates structured in multiple sections, such as title, summary, detail, and page and group headers and footers. Each section has a free-form layout in which you can place various types of elements, including images, static and dynamic text fields, lines, and rectangles. The reporting engine uses this template to organize data in an XML file (JRXML) or to create it programmatically using the library’s API. This data may come from various data sources, including relational databases, collections, or arrays of Java objects or XML data. Users can plug the reporting library into custom-made data sources by implementing a simple interface. To fill a report with data, you must first compile the initial XML report template. Compilation validates the report template and attaches some compiler-related data to it. This data is used to evaluate the report expressions at runtime. The compiled report template can be serialized to store it on disk or sent over the network. This serialized object is then used when the application fills the specified report template with data. In fact, compiling a report template involves compiling all report expressions. Various verifications are made at compilation time to check report design consistency. The result is a ready-to-fill report template that is then used to generate documents on different sets of data. To fill a report template, the engine must receive the report data. This data may come in various forms. Some of this data can be passed in as report parameters, but most of it comes from the report’s data source. The reporting engine can directly receive special data source objects that provide the information for the report, or it can use a supplied JDBC connection object if the data is in a relational database. The result of the report-filling operation is a new object that represents the ready-to-print document. This object can also be serialized for storage on disk or network transfer. It can be viewed directly using the JasperReports built-in viewer or can be exported to other, more popular formats such as PDF, HTML, RTF, XLS, ODT, CSV, and XML. JasperReports is part of the JasperSoft Business Intelligence Suite, which is a comprehensive set of tools for integrated reporting, analysis, and data integration. In addition to JasperReports, the suite is comprised of iReport, an easy-to-use designer for JasperServer, JasperReports, and Jasper4Salesforce; JasperServer, a high-performance business intelligence and report server; JasperAnalysis, an OLAP engine to drill down and slice and dice data to explore causes, trends, patterns, anomalies, and correlations using a standard web browser; and JasperETL, a ready-torun data integration platform providing data extract-transform-load (ETL) capabilities. The JasperSoft Business Intelligence Suite began as a complete open source reporting and BI solution. Today, JasperSoft offers both open source and professional versions of the suite. The professional version includes JasperStudio™, the professional edition of iReport. Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi About the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xx Chapter 1 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Chapter 2 Working with Report Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Chapter 3 Filling Report Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Chapter 4 Handling Generated Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Chapter 5 Large File Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Chapter 6 API Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Chapter 7 Report Template Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Chapter 8 Reporting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Chapter 9 Report Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 Chapter 10 Report Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Chapter 11 Subreports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 Chapter 12 Datasets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Chapter 13 Charts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Chapter 14 Crosstabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 Chapter 15 Scriptlets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Chapter 16 Internationalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 Chapter 17 Report Exporters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Chapter 18 Configuration Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Chapter 19 Advanced JasperReports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 2013-07-23T07:11:03Z 2013-07-23T07:11:03Z 2007 Book 978-1-59059-927-3 http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34886 en application/pdf Apress