jasperreport生成pdf_jasperreport 导出excel_jasperreport json(23)

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

outside the band borders, when compiling report designs.

Skipping Bands

All the report sections allow you to define a report expression that will be evaluated at runtime in order

to decide if that particular section should be generated or skipped, when producing the document.

This expression is introduced by the <printWhenExpression> that is available in any <band>

element of the XML report design and should always return a java.lang.Boolean object or null.

The JasperReports Ultimate Guide

Page 39

6.1 Main Report Sections

A minimal report design can contain no report section at all, because each one of them is optional. But

such a minimal report design won't produce very interesting documents.

XML Syntax

<!ELEMENT title (band?)>

<!ELEMENT pageHeader (band?)>

<!ELEMENT columnHeader (band?)>

<!ELEMENT detail (band?)>

<!ELEMENT columnFooter (band?)>

<!ELEMENT pageFooter (band?)>

<!ELEMENT summary (band?)>

So let's take a closer look at each report section and see how it behaves.

Title

This is the first section of the report. It is generated only once during the report filling process and

makes it for the beginning of the resulting document.

Being the first section of the report means that it will precede even the page header section. Those who

want to have the page header printed somehow before the title section will have to copy the elements

present on the page header also at the beginning of the title section. They could suppress the actual


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

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

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