jasperreport生成pdf_jasperreport 导出excel_jasperreport json(38)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

because it is being used by other report elements that are printed as you can see.

The blank vertical space between elements can be removed using the isRemoveWhenBlank

attribute, only if it is not used by other elements, as explained above.

8.1 Text Elements

There are two kinds of text elements in JasperReports: static texts and text fields.

As their names suggest it, the first are text elements with a fixed, static content, who does not change

during the report filling process and are used especially for introducing labels on the final document.

Text fields however, have an associated expression, which is evaluated at runtime to produce the text

content that will be displayed.

Both types of text elements share some properties and those are introduced using a <textElement>

element. We are now going to see them in detail.

The JasperReports Ultimate Guide

Page 49

XML Syntax

<!ELEMENT textElement (font?)>

<!ATTLIST textElement

textAlignment (Left | Center | Right | Justified) "Left"

lineSpacing (Single | 1_1_2 | Double) "Single"

>

Text Alignment

You can specify how the content of a text element should be aligned using the textAlignment

attribute and choosing one of the 4 possible values: "Left", "Center", "Right" or "Justified".

Text Line Spacing

The amount of space between consecutive lines of text can be set using the lineSpacing attribute:

_ Single: The paragraph text advances normally using an offset equal to the text line height

(lineSpacing="Single").


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-38.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 张静芬
      张静芬

      用老百姓的民用船只把它围住

    • 吴张平
      吴张平

      老马啊巴菲特他真的是靠股票发家的

    • 花魂
      花魂

      我们就要爆头

    热点图片
    拼命载入中...