jasperreport生成pdf_jasperreport 导出excel_jasperreport json(48)

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

expression be evaluated immediately, when generating the current report section.

It is the evaluationTime attribute we are talking about. It can have one of the following values:

_ Immediate evaluation: The text field expression is evaluated when filling the current band

(evaluationTime="Now").

_ End of report evaluation: The text field expression is evaluated when reaching the end of the

report (evaluationTime="Report").

_ End of page evaluation: The text field expression is evaluated when reaching the end of the current

page (evaluationTime="Page").

_ End of column evaluation: The text field expression is evaluated when reaching the end of the

current column (evaluationTime="Column").

_ End of group evaluation: The text field expression is evaluated when the group specified by the

evaluationGroup attribute changes (evaluationTime="Group").

The default value for this attribute is "Now", as already mentioned. In the example presented above,

you could easily specify evaluationTime="Page" for the text field placed in the page header

section, so that it displays the value of the sum variable only when reaching the end of the current page.

The only restriction you should be aware of, when deciding to avoid the immediate

evaluation of the text field expression, is that in such cases, the text field will never stretch

in order to acquire all its content.

This is because the text element height is calculated when the report section is generated and

even the engine will come back later with the text content of the text field, the element


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

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

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