Report Sections

A Crystal report comprises a number of different sections, as shown in the following screenshot (Figure 2-24). Each of these sections has a set of properties associated with it as well as a default behavior. For example, the default behavior of the Page Header section is that it will appear on the top of every page of your report.

raye Meade' (Section!? J

Report Title

^imtDate]

Country A fcegifln , Cn' Cmtoiiti

Figure 2-24

The sections of your report are clearly marked within the Report Designer by both a section name and a number. This number doesn't mean much to us now, but a little later when we want to programmati-cally control report sections, this notation will come in handy. To view the properties for each of these sections, right-click your report and select Format Section to open the dialog shown in Figure 2-25.

Figure 2-25

You can choose to suppress a section if you don't want it to appear, or you can change its appearance by adjusting the color or size of the section, based on your needs. Here is a rundown of the basic sections that may be contained within a report, as well as their default behavior.

Report Section

Description

Report Header

Appears on the top of the very first page of the report and is usually suppressed by default. It can be used to indicate the start of a new report or can used as a cover sheet.

Report Footer

Appears on the bottom of the very last page of the report, is shown by default, and can be used to summarize the report (number of records, print date, and so on).

Page Header

Appears on the top of each page and can be used for column headings, the report title, and the page count, among other items.

Page Footer

Appears on the bottom of each page and can be used to display page numbers, print dates, times, and so on.

Group Header

Appears at the head of each group and is usually used to display the group name.

Group Footer

Appears at the end of a group of records and is usually used to display the group name, subtotals, or summaries.

Details Section

There's one for each record in your report. They are used to display columns of information and may be expanded to cover larger sections of fields or to create forms.

You can insert multiple sections into your report in a scenario where you might want to have two different page headers, or you can separate content out for ease of use and design.

You can control all of these sections through the use of conditional formatting, which we will touch on in Chapter 8, "Formulas and Logic."

Was this article helpful?

0 0

Post a comment