下载 > 资源分类 >  开发技术 >  Java > iReport User Manual.pdf

iReport User Manual.pdf

2010-02-07 上传大小:11.66MB
1 Introduction····························································································8
What is iReport?.............................................................................................8
Features ..................................
                            ........................................................................8
iReport Community........................................................................................9
Acknowledgements ......................................................................................10
2 Getting started·····················································································11
Requirements................................................................................................11
Download .....................................................................................................11
Compile iReport ...........................................................................................12
Start and base configuration.........................................................................12
Create a JDBC connection ...........................................................................14
The first report..............................................................................................15
Command line options .................................................................................19
3 Basic notions of JasperReports·························································21
JasperReports ...............................................................................................21
The report life cycle .....................................................................................21
Jrxml sources and jasper files ......................................................................22
Data sources and print formats.....................................................................25
Compatibility between versions...................................................................26
Expressions ..................................................................................................27
A simple program.........................................................................................28
4 Report structure ··················································································30
Bands............................................................................................................30
Title..........................................................................................................31
Page header..............................................................................................31
Column header.........................................................................................31
Group header ...........................................................................................31
Detail .......................................................................................................32
Group footer ............................................................................................32
Column footer..........................................................................................32
iReport User manual
4
Page footer...............................................................................................32
Last Page footer.......................................................................................32
Summary..................................................................................................32
Background..............................................................................................32
Report properties..........................................................................................33
Columns...................................................................................................34
Advanced options.........................................................................................36
Scriptlet....................................................................................................36
More… ....................................................................................................37
Title on a new page option ......................................................................37
Summary on a new page option...............................................................39
Floating column footer option.................................................................39
Print order...............................................................................................39
Print without data (when no data) ...........................................................40
i18n..........................................................................................................40
Resource Bundle Base name ...................................................................40
Characters encodings of the XML source files .......................................41
5 Report elements ··················································································42
Insert and select elements in the report ........................................................43
Positioning and elements order ....................................................................45
Manage elements with the elements tree .....................................................48
Basic attributes .............................................................................................49
Graphic elements..........................................................................................51
Line..........................................................................................................52
Rectangle .................................................................................................52
Ellipse ......................................................................................................52
Image .......................................................................................................53
Text elements ...............................................................................................56
Static text .................................................................................................57
Text field .................................................................................................57
Subreport ......................................................................................................61
Special elements...........................................................................................62
Chart ........................................................................................................62
Barcode....................................................................................................62
Hyper Links..................................................................................................63
Reference.................................................................................................64
LocalAnchor............................................................................................64
LocalPage ................................................................................................64
RemoteAnchor.........................................................................................64
6 Fonts·····································································································66
The font ........................................................................................................66
External font ............................................................................................67
Encoding..................................................................................................67
Use of Unicode characters.......................................................................68
Report font ...................................................................................................68
7 Fields, parameters and variables·······················································69
Fields ............................................................................................................69
Registration of fields of a SQL query......................................................70
Registration of the fields of a JavaBean ..................................................72
Introduction
5
Registration of the fields for a JRExtendedBeanDataSource..................72
Fields and textfield ..................................................................................73
Parameters ....................................................................................................74
Use of parameters in a query ...................................................................75
Passing parameters from a program ........................................................75
Built-in parameters ..................................................................................77
Variables ......................................................................................................77
Built-in variables .....................................................................................79
8 Bands and groups···············································································80
Bands............................................................................................................80
Groups ..........................................................................................................81
9 Subreport ·····························································································86
Create a subreport ........................................................................................86
Link of a subreport to the parent report .......................................................87
Passage of the parameters........................................................................87
To specify the datasource ........................................................................88
To specify the subreport ..........................................................................89
A step by step example ................................................................................89
Return parameters ........................................................................................96
10 Datasources·······················································································98
Datasources in iReport .................................................................................99
JDBC connection .......................................................................................100
ClassNotFoundException......................................................................101
URL not correct.....................................................................................102
Parameters not correct for the connection .............................................102
To work with the JDBC connection ......................................................102
Fields registration ..................................................................................102
The JRDataSource interface.......................................................................103
JavaBean set datasource.............................................................................104
Fields of a JavaBean set datasource ......................................................106
XML DataSource .......................................................................................108
Registration of the fields .......................................................................111
XML datasource and subreport .............................................................113
CSV DataSource ........................................................................................116
Registration of the fields .......................................................................117
JREmptyDataSource ..................................................................................117
To implement a new JRDataSource...........................................................118
To use a personalized JRDataSource with iReport ....................................120
JavaBean Extended datasource ..................................................................122
11 Internationalization··········································································124
Resource Bundle Base Name .....................................................................124
Retrieval of localized strings......................................................................126
Formatting messages..................................................................................127
Deploy of localized reports ........................................................................128
12 Scriptlet ····························································································129
The JRAbstractScriptlet class ....................................................................129
Scriptlet handling in iReport ......................................................................131
Deployment of reports that use scriptlets...................................................133
iReport User manual
6
13 Template···························································································134
Template structure......................................................................................134
Using a custom template ............................................................................137
14 Charts ·······························································································139
Creation of a simple chart ..........................................................................139
Series ..........................................................................................................144
Automatic series ....................................................................................146
Manual series.........................................................................................146
Types and properties of the charts .............................................................148
Pie Chart ................................................................................................150
Pie3D Chart ...........................................................................................150
Bar .........................................................................................................150
Bar3D ....................................................................................................153
Line........................................................................................................153
Area .......................................................................................................153
15 Plugins and additional tools···························································155
Plugin configuration XML file...................................................................156
The it.businesslogic.ireport.plugin.IReportPlugin class............................157
Plugin Massive compiler............................................................................160
Plugin Text Wizard ....................................................................................161
16 Solutions to common problems·····················································163
Printing a percentage..................................................................................163
Count occurrences of a group ....................................................................164
Split the detail ............................................................................................166
Insert a page break .....................................................................................167
Crosstab reports..........................................................................................169
Retrieving data using multiple connections ...............................................170
How to use a Stored Procedure ..................................................................171
Appendix A –GNU General Public License ········································172
The GNU General Public License..............................................................172
Preamble ................................................................................................172
Terms and Conditions for Copying, Distribution, and Modification ....173
NO WARRANTY .................................................................................176
Appendix: How to Apply These Terms to Your New Programs ..........177
Appendix B – DTD definitions ·····························································178
jaspereport.dtd............................................................................................178
iReportProperties.dtd .................................................................................181
iReportPlugin.dtd .......................................................................................181
iReportFilesList.dtd....................................................................................182
Appendix C – iReport and JasperReports versions ··························183
Index ······································································································184
Introduction                                                    
...展开收缩
综合评分:4(3位用户评分)
开通VIP C币充值 立即下载

评论共有3条

jialim89 2013-07-16 21:01:19
比较好,可以当手册使用
edwincheng234 2012-11-18 20:15:18
比较好,可以当手册使用
jamscool 2012-09-18 11:10:39
配合jspaper使用的,柑橘比较复杂,不方便。

登录后才能评论

 
iReport User Manual part4 立即下载
积分/C币:3
iReport User Manual 立即下载
积分/C币:3
iReport User manual english 1.2.1 by Giulio Toffoli 立即下载
积分/C币:3
de1-soc_user_manual.pdf 立即下载
积分/C币:10
OpenEmbedded User Manual .pdf 立即下载
积分/C币:10
BitBake User Manual .pdf 立即下载
积分/C币:10
IEC 61850 Protocol API User Manual.pdf 立即下载
积分/C币:10
ANT-5 Remote Control User Manual.pdf 立即下载
积分/C币:3
SmartRF_Studio_User_Manual_6_5 _Chipcon.pdf 立即下载
积分/C币:3
InfoGlue - User Manual for version 2.8.0.pdf 立即下载
积分/C币:3
关闭
img

spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip

资源所需积分/C币 当前拥有积分 当前拥有C币
5 0 0
扫码关注并点击右下角获取下载码
输入下载码
为了良好体验,不建议使用迅雷下载
img

iReport User Manual.pdf

会员到期时间: 剩余下载个数: 剩余C币: 剩余积分:
为了良好体验,不建议使用迅雷下载
VIP下载
您今日下载次数已达上限(为了良好下载体验及使用,每位用户24小时之内最多可下载20个资源)

积分不足!

资源所需积分/C币 当前拥有积分
您可以选择
开通VIP
4000万
程序员的必选
600万
绿色安全资源
现在开通
立省522元
或者
购买C币兑换积分 C币抽奖
img

资源所需积分/C币 当前拥有积分 当前拥有C币
5 4 45
(仅够下载10个资源)
为了良好体验,不建议使用迅雷下载
确认下载
img

资源所需积分/C币 当前拥有积分 当前拥有C币
5 0 0
为了良好体验,不建议使用迅雷下载
C币充值 开通VIP
img

资源所需积分/C币 当前拥有积分 当前拥有C币
5 4 45
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
确认下载
下载

兑换成功

你当前的下载分为234开始下载资源
你还不是VIP会员
开通VIP会员权限,免积分下载
立即开通

你下载资源过于频繁,请输入验证码

您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:webmaster@csdn.net!

举报

若举报审核通过,可奖励5下载分

  • 举报人:
  • 被举报人:
  • 举报的资源分:
  • *类型:
  • *详细原因: