Report bands
A band is an area of the page that decides where the controls inside it print and how many times. Some bands print once, some print on every page, and one prints once for each record. This page is for implementers and support staff who build templates.
Band kinds
| Band | When it prints | Usual use |
|---|---|---|
| Top margin band | At the top of every page | Sets the top margin of the page. |
| Report Header | Once, at the start of the report | The logo, the company name and the document title. |
| Page Header | At the top of every page | The column titles. |
| Group Header | At the start of each group, and again at the top of the next page if the group splits over two pages | The group title, such as the warehouse name. |
| Detail | Once for each record | A line of the document. |
| Detail report band | Under the Detail band, and holds an inner report with its own bands | Showing a second set of data inside the first. |
| Group Footer | At the end of each group | The group total. |
| Report Footer | Once, on the last page, before the page footer | Grand totals and signatures. |
| Page Footer | At the bottom of every page | The page number and the print date. |
| Bottom margin band | At the bottom of every page | Sets the bottom margin of the page. |
On top of these kinds there is a sub-band, which is a copy of the band above it. You can add as many as you like to any band except the margin bands and sub-bands, to design alternative versions of the band and choose between them by a condition. The designer also has vertical bands (Insert Vertical Band), which this guide does not cover.
The Detail band cannot be deleted. It prints once for each record in the data source of the report.
Inserting and deleting bands
| You want to | How |
|---|---|
| Insert a band | Right-click the report, choose Insert Band, and then the kind of band. |
| Insert a sub-band | Select the band, and choose Add SubBand from the menu. |
| Insert a group header and footer | Add a group in the Group And Sort panel, and the designer creates the Group Header band. See Group and sort. |
| Delete a band | Select the band and press the Delete key. |
| Change the order of the bands | Open the smart tag of the report, and click Edit and Reorder Bands.... |
| Collapse or expand the bands | Use the Collapse All and Expand All commands on the ribbon. The first collapses all the bands and the second opens them again. |
| Change the height of a band | Drag the handle of the band on the vertical ruler. |
Band options
You set these options in the Properties panel after you select the band. Each kind of band shows only the ones that suit it.
| Property | What it does |
|---|---|
| Keep Together | Tries to keep the content of the band on one page, and moves all of it to the next page if what is left of the page is not enough. |
| Keep Together With Detail Report | Keeps the band on the same page as the detail report under it. |
| Page Break | Starts a new page before the band or after it. |
| Repeat Every Page | Prints the band again at the top of every page on which its data continues, such as the header of a group that runs over several pages. |
| Print On | Chooses the pages on which the band prints, for example to stop the page header printing on the page that holds the report header. |
| Print at Bottom | Prints the band at the bottom of the page instead of after the last line. |
The properties also include those for grouping, such as Group Fields and Sort Fields. They are explained in Group and sort.
Example: an invoice layout
Arrange a sales invoice on the bands like this:
| Band | Its content |
|---|---|
| Report Header | The logo, the company name, the words "Sales invoice", and the invoice number and date. |
| Page Header | The column titles of the table: Item, Quantity, Price and Total. |
| Detail | A line for each item in the invoice. |
| Report Footer | The invoice total and the amount in words. |
| Page Footer | The page number and the print date. |
With this arrangement the column titles repeat on every page, and the total appears once, after the last line.
Related
This page applies to alameen ERP 10, version 10.1.79.764.