New to JasperReports and attempting to either: (a) manually write a JRXML
or (b) manually program a JasperDesign myself (not using a template)
. My understanding is that both the XML and the Java object represent the same concept: an empty "shell" of a report without any data in it.
I'm trying to figure out what JR components would be suit my needs, and the reference, the samples as well as many online searches haven't turned back anything that is clear-cut. Most JR documentation seems, at least to a newbie, to be written from an "assumed knowledge" standpoint.
What is the difference between, and appropriate usages for, the following "components" (not really sure what else to call them):
- Text
- TextField
- TextElement
- StaticText
This images example here shows most of these elements being used, seemingly willy-nilly in a not-so-obvious format.
The root of my question is that I wish to display two types of text-based information; one I am referring to as "fields" (not to be confused with JR fields) and the other I am calling "text blocks" consisting of a header and a body. I would like these fields/text blocks rendered as follows:
"Field":
Name: John Smith
Age: 42
Summary: This is an example of a field
And a "text block":
Name:
John Smith
Age:
42
Summary:
This is an example of a text block. "Summary:" is the head, and this is the body.
Same information, just presented differently. I believe that one/several of the JR components listed above are the one's I need to use, but I can't seem to find any documentation that confirms/rejects that.
Anybody have any ideas on this? Thanks in advance!