Navigation:  Contents > Bands > Data bands >

StimulReport.Net User Manual

Print this Topic Previous pageReturn to chapter overviewNext page

List with header

Usually in reports under the every column with data there is a name of a column. For data name and other information output before data the Header band is used. It is positioned before the Data band.

 

The template of a report with data header.

 

Let add the Header band. On the band we put text components. In these text components we specify data names which are on the Data band. In addition we enlarge the font height, make it bold, change the background of text components which are positioned on the Header band.

 

Rendered report with data headers.

 

When report rendering for one Data band you can create more than one Header band. For example, the first Header band is only in the beginning of data. But the second - both in the beginning of data and again on other pages of a report. Header bands output depend on their position on a page.

Notice. For one Data band it is possible to create unlimited number of Header bands.

 

The PrintOnAllPages property

If to see the rendered report then you can find that the report generator has showed the data header again on all pages of a report. This have been done for better visual effect of data output. But if there is no need in it such effect of a program can be changed. For this you can use the PrintOnAllPages property of the Header band. Set this property in False and you will see the header once before data.

Notice. Set this property in False and you will see the header once before data.

 

The KeepHeaderTogether property

When outtyping lists you may notice that the header is printed on one page and the first string with data on the other. For avoiding such a problem use KeepHeaderTogether property of the Data band. If this property is True then headers will always be printed with data. In other words the header and one string with data as minimum will be on one page together. If the header with the data string are out of page bounds then they will be carried over the next page.

Notice. For avoiding the header and the first string output on different pages use the KeepHeaderTogether property.

 

Reports templates

Demo, report: Simple List