Skip to main content

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​

BandWhen it printsUsual use
Top margin bandAt the top of every pageSets the top margin of the page.
Report HeaderOnce, at the start of the reportThe logo, the company name and the document title.
Page HeaderAt the top of every pageThe column titles.
Group HeaderAt the start of each group, and again at the top of the next page if the group splits over two pagesThe group title, such as the warehouse name.
DetailOnce for each recordA line of the document.
Detail report bandUnder the Detail band, and holds an inner report with its own bandsShowing a second set of data inside the first.
Group FooterAt the end of each groupThe group total.
Report FooterOnce, on the last page, before the page footerGrand totals and signatures.
Page FooterAt the bottom of every pageThe page number and the print date.
Bottom margin bandAt the bottom of every pageSets 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.

note

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 toHow
Insert a bandRight-click the report, choose Insert Band, and then the kind of band.
Insert a sub-bandSelect the band, and choose Add SubBand from the menu.
Insert a group header and footerAdd a group in the Group And Sort panel, and the designer creates the Group Header band. See Group and sort.
Delete a bandSelect the band and press the Delete key.
Change the order of the bandsOpen the smart tag of the report, and click Edit and Reorder Bands....
Collapse or expand the bandsUse 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 bandDrag 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.

PropertyWhat it does
Keep TogetherTries 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 ReportKeeps the band on the same page as the detail report under it.
Page BreakStarts a new page before the band or after it.
Repeat Every PagePrints 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 OnChooses 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 BottomPrints 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:

BandIts content
Report HeaderThe logo, the company name, the words "Sales invoice", and the invoice number and date.
Page HeaderThe column titles of the table: Item, Quantity, Price and Total.
DetailA line for each item in the invoice.
Report FooterThe invoice total and the amount in words.
Page FooterThe 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.

This page applies to alameen ERP 10, version 10.1.79.764.