jasperreport生成pdf_jasperreport 导出excel_jasperreport json(22)

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

6 Report Sections

When building a report design we need to define the content and the layout of its sections. The entire

structure of the report design is based on the following sections: <title>, <pageHeader>,

<columnHeader>, <groupHeader>, <detail>, <groupFooter>, <columnFoter>,

<pageFooter>, <summary>.

Sections are portions of the report template that have a specified height and width and can contain

report elements like lines, rectangles, images or text fields. Those sections are filled repeatedly at report

generating time and make up the final document that is being produced. When declaring the content

and layout of a report section, in an XML report design, we use the generic element <band>.

XML Syntax

<!ELEMENT band (printWhenExpression?, (line | rectangle | image | staticText

| textField | subreport | elementGroup)*)>

<!ATTLIST band

height NMTOKEN "0"

>

<!ELEMENT printWhenExpression (#PCDATA)>

Report sections are sometimes referred as report bands and represent a feature that almost all report

tools have and use in the same way.

Band Height

The attribute height available in a report band declaration specifies the height in pixels for that

particular band and is very important in the overall report design.

The elements contained by a certain report band should always fit the band's dimensions, to avoid

potential bad results when generating the reports. The engine issues a warning if it finds elements


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

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

    • 王曹炎
      王曹炎

      我说的那些别人不一定知道

    • 杜审言
      杜审言

      绝不手软

    • 邢群
      邢群

      其实今年以来国家实际上放了30000亿的水

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