13.07.2015 Views

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Report Structureexample, in a report page the title band is evaluated only once, while for the page header it is evaluated every time a new pageis produced and for the Detail band it is evaluated every time a new record is processed.As in all the expressions, you are free to use all the report objects available (fields, parameters and variables).4.2.3 Split Allowed and Split TypeThe Split Allowed option is deprecated, and its use has been replaced by the Split Type property. It is used to control whatto do when a band cannot be fully rendered in the remaining space on the page. Keeping in mind that bands can growdynamically during the filling process, it is easy for a band to expand so much that it no longer fits on the current page orcolumn.Here is a reference to the options for Split Type (from the JasperReports XSD schema):OptionStretchPreventImmediateDescriptionThe band is allowed to split, but not within its declared height.This type allows a band to be split only if the band is stretched and only if the band expandsbeyond the declared band height. If we have a declared band height of 100 pixels, the bandcannot break within the first 100 pixels. Any break must occur beyond 100. For instance, if theband has a total of 110 pixels, a break can only occur in the final 10 pixels.Prevents the band from splitting on the first break attempt. On subsequent pages, the band isallowed to split any number of times.If there is not enough space on the current page to render the band, the entire band is renderedon the next page. If the available space on the new page is still not enough, the remaining bandcan be split any number of times.The band is allowed to split anywhere, as early as needed, but not before at least one element isprinted on the current page.4.3 SummaryAt this point, you should understand the structure of a page and how it is divided into several bands. You should alsounderstand the conditional nature of bands, as well as how <strong>iReport</strong> evaluates whether and how to include a band in a reportpage. In the bands we will add the content to be printed.In the next chapter, we will see how to use the group header and the group footer bands, and what other options can be set toplace band groups in a new column or on a new page.61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!