jasperreport生成pdf_jasperreport 导出excel_jasperreport json(33)

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

used to draw the text of the text elements and the border of the graphic elements. The back color is the

one used to fill the background of the specified report element, if it is not transparent.

You could specify colors using the decimal or hexadecimal representation of the integer number

corresponding to the desired color. The preferred way to specify colors in XML is using the

hexadecimal representation, because it allows controlling the level for each base color of the RGB

system.

For example, you can display some text in red if you set the forecolor attribute of the corresponding

text field like this:

forecolor="#FF0000"

The equivalent using the decimal representation would be:

forecolor="16711680"

but the inconvenience is evident.

The JasperReports Ultimate Guide

Page 46

The default fore color is black and the default back color is white.

Element Transparency

Report elements can be either transparent or opaque, depending on the value you specify for the

attribute mode.

The default value for this attribute depends on the type of the report element. Graphic elements like

rectangles and lines are opaque by default, but the images are transparent. Both static texts and text

fields are transparent by default, and so are the subreport elements.

Skipping Element Display

The engine can decide at runtime if it really should display a report element, if you use the

<printWhenExpression> that is available for all types of report elements.

If present, this report expression should return a java.lang.Boolean object or null and is evaluated


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

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

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