Report structure
Band types
Report consists of several bands that allow you to display values on different parts of the report. Bands are of different types and are divided into those that do not need data from tables or queries and band that need data from tables and queries.
The types of bands that do not require a dataset are:
Name |
Description |
ReportTitle |
Band that appears at the beginning of the report. |
ReportSummary |
Band that appears at the end of the report. |
PageHeader |
Band that appears at the top of page. |
PageFooter |
Band that appears at the bottom of page. |
GroupFooter |
Band that appears at hte bottom of the data. |
Child |
Band subordinate to other band. |
Band types that need dataset are:
Name |
Description |
MasterData |
Data of the 1st data level repeated for each master data record. Must have DataSet defined. |
Page Header |
Printed at the top of each page. |
Page Footer |
Printed at the bottom of each page. |
GroupHeader |
Group title printed at the beginning of group. Condition on which field data is grouped must be defined. |
GroupFooter |
Printed after group. |
DetailData |
Data of the 2nd data level repeated for each detail record. |
SubdetailData |
Data of the 3rd data level repats once for each sub-detail record. |
Main address that we want to display at the beginning of the report in ReportTitle (report title), date, page number, or comment on the PageHeader or PageFooter. Various calculations can be displayed in the Group Footer. If we want data to be displayed at the end of the report, we'll put them in ReportSummary.
We can use bands on the report or not. We can add them via the toolbar.
The most important characteristics of the bands are:
AllowSplit |
Specifies whether a band can be printed on multiple pages. If the band can not be printed on more than one page and is higher than the height of the page that is available for printing, the lower part of the band does not appear. |
Stretched |
Določa, ali naj se višina pasu prilagodi višini objektov v njem. |
PrintOnFirstPage |
Določa, ali se pas izpiše na prvi strani. Imata ga samo glava in nogastrani. |
PrintOnLastPage |
Določa, ali se pas izpiše na prvi strani. Ima ga samo nogastrani. |
ReprintOnNewPage |
Določa, ali se pas ponovno izpiše na vrhu naslednje strani. Ima ga samo glava. |
StartNewPage |
Določa, ali se pas izpiše na začetku naslednje strani. Imajo ga pasovi s podatki razen noge skupine. |
Band type Child
When we want parts of the band have different properties, we divide it into several bands. The first one remains the same, and the rest are subordinate to him (Child types). Many such bands are, for example, on the report 241. There are more bands and are different in a way if they are visible under different conditions for visibility (a different value of the Visible properties), which in this case is specified in the program code. It is also used in the case when in the center of the band is an object whose height changes, and the distance to the lower objects must remain the same.
Each band, except the last one, must have a Child property, the value of which is the next Child's band in the group.
Pas s spremeljivo višino
Nekateri pasovi vsebujejo tekstovne objekte, v katere vpisujemo različno dolgo besedilo, zato se mora spreminjati višina pasov in tekstovnih objektov.
V oknu Object Inspector lahko določimo naslednje lastnosti vezane na širino in višino:
-
AutoWidth - lastnost določa ali naj objekt prilagodi širino glede na dolžino besedila
-
StretchMode - lastnost določa kako naj objekt prilagodi višino glede na dolžino besedila
-
WordWrap - lastnost določa prelivanje besedila v novo vrstico
