Parent element name
Element Name Property Name
meaning
Elementatic number of elements
Type of value
Root element
JasperReport
Template root element
1
,
JasperReport
Name
Template name
Mandatory properties
NMToken
Columncount
Number of columns per page
1
NMTOKEN default is 1
PrintOrder
If a page is more than one column, specify the direction of the populated data
1
Vertical or Horizontal defaults to Vertical
PageWidth
Page width
1
NMTOKEN default is 595
PageHeight
Page height
1
NMTOKEN default is 842
Columnwidth
Column width
1
NMTOKEN default is 555
Columnpacing
Column pitch
1
NMTOKEN default is 0
LEFTMARGIN
Page Make margins
1
NMTOKEN default is 20
Rightmargin
Page right sideline
1
NMTOKEN default is 20
Topmargin
Page on the page
1
NMTOKEN default is 30
Bottommargin
Page on the page
1
NMTOKEN default is 30
WhennoDataType
When there is no data on the page, if you select the NOPAGES system, you will be prompted without a page. If you select BlankPage, you will display a page empty page, if you select AllSectionNodetial, you will display all parts other than the Detail paragraph.
1
NOPAGES or BlankPage or AllsectionsNodetail defaults to NOPAGES
iStitlenewPage
Title part is displayed in a separate page
1
True or False defaults to false
IssummaryneWPage
Summary part is displayed in a separate page
1
True or False defaults to false
ScriptletClass
Java code executed during data padding
Can
NMToken
orientation
Print direction
1
Portrait or Landscape defaults to "portrait"
JasperReport
Property
Define the Property element
0 times or more
Empty element
Property
Name
Attribute name
have to
CDATA
Value
Attribute value
Can
CDATA
ReportFont
Define fonts in the template
0 times or more
Empty element
ReportFont
Name
Define reference name
have to
Name
ISDefault
Whether the font is the default font of the template
1
True or False defaults to "false"
Fontname
The name of the font
1
CDATA defaults to "Sansserif"
Size
font size
1
NMTOKEN defaults to "10"
Isbold
Whether the font is bold
1
True or False defaults to "false"
isitalic
Whether the font is italic
1
True or False defaults to "false"
Isunderline
Whether the font is dected
1
True or False defaults to "false"
Isstrikethrough
IsstrikeThrough11
True or False defaults to "false"
PDFFontName
PDF font name
1
CDATA defaults to Helvetica
PDFENCODING
PDF font encoding method
1
CDATA defaults to CP1252
Ispdfembedded
Is the PDF font embedded in a PDF document
1
True or False defaults to "false"
Parameter
Parameter definition in the template
0 times or multiple times
Parameter
Name
parameter name
have to
NMToken
Class
Parameter value type
1
NMToken defaults to "java.lang.string"
IsforPrompting
Use in the graphical interface to prompt the user to enter parameter information
1
True or False defaults to "false"
Parameter
ParameterDescription
When ISforPrompting in Parameter is set to "True", the information of this field is information to the user.
0 this or once
#Pcdata
Parameter
DEFAULTVALUEEXPIPRESSION
During the data fill, the value of Parameter is transmitted via HASPMAP. If the variable is transmitted to the variable in the fill, this variable is null, but if the default value of the defaultValueExpression is defined, this element is taken (this field) Value is valid only when the value is not transmitted to this variable during the data fill)
0 times or 1 time
#Pcdata
JasperReport
QueryString
During the data fill, if the data parameter is the connection pool object (Connection), this SQL statement is performed to take the data.
0 times or 1 time
#Pcdata
JasperReport
Field
Query result target column field name definition
0 times or multiple times
Field
Name
parameter name
have to
NMToken
Class
Parameter value type
1
(java.lang.boolent | java.lang.Boolean | java.lang.byte | java.util.date | java.sql.timestamp | java.sql.time | java.lang.double | java.lang.float | java .lang.integer | java.io.inputstream | java.lang.long | java.lang.short | java.math.bigDecimal | java.lang.string) The default is "java.lang.string"
Field
FieldDescription
? ? ?
0 times or 1 time
#Pcdata
JasperReport
Variable
Variable definitions. There are also some embedded variables in the system: Page_Number: Page number (can be a page number, the number of pages, setting different values through the TEXTFIELD)
COLUMN_NUMBER: Column Number
Report_count: Number of data source records in the current document
Page_count: The number of records recorded in the current page
COLUMN_COUNT: The number of records recorded in the column
Groupname_count: Number of records in the current group
0 times or multiple times
Variable
Name
parameter name
have to
NMToken
Class
Parameter value type
1
NMToken defaults to "java.lang.string"
RESETTYPE
Variables are reinitialized. If the value of the value of the None is calculated in
1
(None | Report | Page | Column | Group) Default "Report"
Resetgroup
This field is valid when resettype is set to group.
Can
CDATA
Calculation
Calculation type of variables, if nothing, the value of the variable is the value of variable expression; if count, this variable is a digital type, which calculates the data source iteration,
1
(Nothing | Count | SUM | Average | Lowest | Highest | Standarddeviation | Variance | System) defaults to "nothing"
IncrementerFactoryClass
Java class in the JRincrementerFactory interface
Can
NMToken
Variable
VariableExpression
Expression of the variable calculated
0 times or 1 time
#Pcdata
Variable
InitialValueExpression
The initial value of the variable
0 times or 1 time
#Pcdata
JasperReport
group
Define the group of the template, the data in Group is a continuous series of data, and the packet is specified by groupExpression. There are many groups in the template, but these groups are sequential, and they have a relationship between them. When a large group ends, the groups it contains reinitializes (packets only sort data only when the data source has already used the GROUPEXPRESSION field. After that, if you do not use the specified field sorted, the result is not the result of the desired result).
0 times or multiple times
group
Name
Group name
have to
NMToken
ISstartnewColumn
Whether in the new column when the new group begins
1
True or False defaults to "false"
IsstartneWPage
When the new group starts, do you start on a new page
1
True or False defaults to "false"
IsreSetPagenumber
Whether to reset the PAGENUMBER variable when the new group begins
1
True or False defaults to "false" isreprintheaderoneachpage
Whether printhead information on each page
1
True or False defaults to "false"
MinheighttostArtNewpage
If ISStartNewPage is set to false but then restart a page after the residual height is less than a value, this property is specified this minimum height value.
1
NMToken default is "0"
Group
Groupexpression
Group field value
0 times or 1 time
#Pcdata
Group
Groupheader
Partial part
0 times or 1 time
Group
Groupfooter
Tail section
0 times or 1 time
JasperReport
BACKGROUND
Background part
0 times or 1 time
JasperReport
Title
Header
0 times or 1 time
JasperReport
PageHeader
Header
0 times or 1 time
JasperReport
ColumnHeader
Column head section
0 times or 1 time
JasperReport
Detail
0 times or 1 time
JasperReport
Columnfooter
COLUMN tail section
0 times or 1 time
JasperReport
Pagefooter
Footer section
0 times or 1 time
JasperReport
Summary
Summary
0 times or 1 time
Groupheader
Goupfooter Background Title
A paragraph of the template
0 times or 1 time
Printwhenexpression? (LINE | Rectangle | Ellipse | Image | StaticText | TextField | Subreport | ElementGroup) *)
HEIGHT
Segment height
1
NMTOKEN default is 0
IssplitalLowed
Whether it can be separated
? ? ?
1
True or False defaults to "true"
Linear element
0 times or multiple times
REPORTELEMENT, GRAPHICEMENT?
Direction
The direction of the straight line,
1
TOPDOWN or BOTTOMUP defaults to "topdown"
1
Key
Can
NMToken
PositionType
This element is positioned when the page element (TextField or StaticText) allows stretching to affect the location of this element.
1
(Float | FixRelativeTotop | FixRelativeToBottom) "FixRelativeTotop" stretchtype
Graphic element extension
1
(Nostretch | RelativeTotalleStObject | relativeToBandHeight) "NostRetch"
IsprinTrepeatedValues
Whether printing duplicate data
1
True or False defaults to "false"
Mode
Transparent setting
Can
(Opaque | Transparent)
x
This element relative to the X coordinate of the left foot of this element
have to
NMToken
y
This element is relative to the Y coordinate of the left foot of this element.
have to
NMToken
Width
Element width
have to
NMToken
HEIGHT
The height of the element (pixel is unit), when the stretch is allowed, the height will dynamically change
have to
NMToken
Isremovelinewhenblank
Whether to eliminate this row when the data is empty
1
True or False defaults to "false"
IsprintInfirstWholeBand
In the first paragraph per page, this element has appeared
1
True or False defaults to "false"
IsprintwhendetailoverFlows
When a page cannot accommodate the page element content, do you re-print this element on other pages?
1
True or False defaults to "false"
PrintwhenGroupChanges PRINTWHENGROUPCHANGES
Can
CDATA
Forecolor
Foreground color
Can
CDATA
Backcolor
Background color background
Can
CDATA
Graphicelement
0 or 1
Empty element
Graphicelement
Stretchtype
Graphic element extension
Can
(Nostretch | RelativeTotalleStObject | relativeToBandHeight)
Pen
Border line thickness
Can
(None | Thin | 1POINT | 2POINT | 4POINT | DOTTED)
Fill
Line filling method
1
(Solid) "Solid"
This element is displayed when and only when this field returns True.
0 or 1
#Pcdata
Rectangular frame element
0 or multiple times
(REPORTELEMENT, GraphiceLement?)
Radius
Rectangular rounding radius
1
NMTOKEN defaults to "0"
Elliptical element
0 or multiple times
(REPORTELEMENT, GraphiceLement?)
Graphic element
0 or multiple times
(REPORTELEMENT, GRAPHICEMENT ?, iMageExpression ?, anchornameExpression ?, hyperlinkReferenceExpression ?, hyperlinkanchorexpression ?, hyperlinkpageExpression?)
ScaleImage
How to display pictures in image elements when the picture size is different from the specified image element.
1
(CLIP | FILLFRAME | Retainshape) "Retainshape" Halign
Horizontal alignment
1
(Left | Center | Right) "Left"
Valign
Vertical alignment
1
(TOP | MIDDLE | BOTTOM) "TOP"
ISUSINGCACHE
Whether to cache image
1
(true | false) defaults to "True"
EvaluationTime
Calculate the time of content in
1
(Now | Report | Page | Column | Group) "NOW"
EvaluationGroup
This property specifies the group name when EvaluationTime is Group.
Can
CDATA
HyperlinkType
Hyper link type
1
(None | Reference | Localanchor | LocalPage | RemoteAnchor | RemotePage) "NONE"
Specify the source location of the image
0 or 1
#Pcdata
Class
Image type
(java.lang.string | java.io.file | java.net.URL | java.io.inputstream | java.awt.image) "java.lang.string"
Anchor name (with a super connection reference)
0 or 1
#Pcdata
Hyper link reference type
0 or 1
#Pcdata
Super connection anchor type
0 or 1
#Pcdata
Hyper link page type
0 or 1
#Pcdata
Static text element
0 or multiple times
(REPORTELEMENT, TEXTELEMENT ?, text?)
Text element
1
(font?)
TextAlignment
Text level alignment
1
(Left | Center | Right | Justified) "LEFT"
VerticalALIGNMENT
Text vertical alignment
1
(TOP | MIDDLE | BOTTOM) "TOP"
Rotation
turn around
1
None | Left | Right) "NONE"
Linespacing
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
1
(SINGLE | 1_1_2 | Double) "Single"
ISStydText
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
1
(True | False) "False"
Font used in text
0 or 1
Empty element
ReportFont
Quote the font name defined in JasperReport
Can
NMTokenfontname
The name of the font
Can
CDATA defaults to "Sansserif"
Size
font size
Can
NMTOKEN defaults to "10"
Isbold
Whether the font is bold
Can
True or False defaults to "false"
isitalic
Whether the font is italic
Can
True or False defaults to "false"
Isunderline
Whether the font is dected
Can
True or False defaults to "false"
Isstrikethrough
Isstrikethrough
Can
True or False defaults to "false"
PDFFontName
PDF font name
Can
CDATA defaults to Helvetica
PDFENCODING
PDF font encoding method
Can
CDATA defaults to CP1252
Ispdfembedded
Is the PDF font embedded in a PDF document
Can
True or False defaults to "false"
Text content in static text box
0 or 1
#Pcdata
Dynamic text box element
0 or multiple times
(REPORTELEMENT, TEXTELEMENT ?,, AnchornameExpression ?, hyperlinkReferenceExpression ?, hyperlinkAnchorexpression ?, hyperlinkpageExpression?)
IsstretchWithoverflow
Whether it is allowed to stretch
1
(True | False) "False"
EvaluationTime
Field value calculation time
1
Now | Report | Page | Column | Group) "NOW"
EvaluationGroup
This property specifies the group name if evatarationTime is Group.
Can
CDATA
Pattern
Specify the pattern matching of the field value
Can
CDATA
Isblankwhennull
If the value is null, display the blank
1
(True | False) "False"
HyperlinkType
Super connection type
1
(None | Reference | Localanchor | LocalPage | RemoteAnchor | RemotePage) "NONE"
Field value content
0 or 1
#Pcdata
Class
Field value type
1
(java.lang.Boolean | java.lang.byte | java.util.date | java.sql.timestamp | java.sql.time | java.lang.double | java.lang.float | java.lang.integer | Java .lava.lang.short | java.math.bigdecimal | java.lang.Number | java.lang.string) "java.lang.string"
0 or multiple times
ReportElement, parametersmapexpression ?, subreportParameter *, (ConnectionExpression | DATASOURCEEXPIPRESSION)?
ISUSINGCACHE
Whether to buffer report
1
(True | False) "True"
Sub-report parameter variable
0 or 1
#Pcdata
Sub-report parameters
0 or multiple times
(SUBREPORTPARETEREXPIPRESSION?)
Name
Sub-report parameter name
have to
NMToken
Sub-report parameter value
0 or 1
#Pcdata
Sub-report connection pool value
0 or 1
#Pcdata
Subsport data source value
0 or 1
#Pcdata
Sub-report location
0 or 1
#Pcdata
Class
Sub-report location type (URL address or sub-report name)
1
(java.lang.string | java.io.file | java.net.URL | java.io.inputstream | dori.jasper.Engine.jasperReport "java.lang.string"
Element group
0 or multiple times
(LINE | Rectangle | Ellipse | Image | staticText | TextField | Subreport | ElementGroup) *
Author: Li Jianwei