Guia De Jasperreports
The JasperReports Ultimate Guide
Version 1.0
Author: Teodor Danciu
Copyright © 2002 Teodor Danciu (teodord@hotmail.com). All rights reserved.
Page 1
The JasperReports Ultimate Guide
Table of contents
1 2 3 Introduction ______________________________________________________4 API Overview _____________________________________________________5Main Tasks and Processes _________________________________________10
3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 XML Parsing _____________________________________________________ 10 Compiling Report Designs __________________________________________ 10 Report Design Preview _____________________________________________ 12 Filling Reports ____________________________________________________ 13 Viewing Reports___________________________________________________ 15 Printing Reports___________________________________________________ 16 Exporting Reports _________________________________________________ 17 Object Loading and Saving__________________________________________ 17 DTD Reference ____________________________________________________ 19 XML Encoding____________________________________________________ 20 Report Properties__________________________________________________ 21 Expressions _______________________________________________________ 25 Parameters _______________________________________________________ 26
Built-in Report Parameters ______________________________________________ 28
4
Report Designs___________________________________________________19
4.1 4.2 4.3
5
ReportData _____________________________________________________25
5.1 5.2 5.3 5.4 5.5 5.6
5.2.1
Data Source_______________________________________________________ 29 Report Query _____________________________________________________ 31 Fields ____________________________________________________________ 32 Variables _________________________________________________________ 34
Calculations__________________________________________________________ 35 Built-in Report Variables________________________________________________ 37
5.6.1 5.6.2
6
Report Sections __________________________________________________38
6.1 6.2 Main Report Sections ______________________________________________ 39 Data Grouping ____________________________________________________ 40
7 8Scriptlets________________________________________________________43 Report Elements _________________________________________________44
8.1 Text Elements _____________________________________________________ 48
Fonts and Unicode Support ______________________________________________ 49 Static Texts __________________________________________________________ 53 Text Fields___________________________________________________________ 53 Lines _______________________________________________________________ 57 Rectangles ___________________________________________________________ 58 Images ______________________________________________________________ 58 8.1.1 8.1.2 8.1.3
8.2
Graphic Elements__________________________________________________ 56
8.2.1 8.2.2 8.2.3
Page 2
The JasperReportsUltimate Guide
8.2.4
Charts and Graphics____________________________________________________ 60
8.3 8.4
Hyperlinks _______________________________________________________ 60 Element Groups ___________________________________________________ 62 Subreport Parameters ______________________________________________ 65 Subreport Data Source _____________________________________________ 66
9Subreports ______________________________________________________63
9.1 9.2
10
Advanced JasperReports _________________________________________67
10.1 XML Report Designs Loading and Writing ____________________________ 67 10.2 Implementing Data Sources _________________________________________ 67 10.3 Customizing Viewers _______________________________________________ 68 10.4...
Regístrate para leer el documento completo.