Controlling Page Breaks

Objectives

After completing this lesson, you will be able to:

  • Display each group on its own page

Pagination Overview

Use the Paging tab to set properties such as: page breaks, page numbers, orientation, and so on for a desired section. The options in the Paging tab are:

New Page Before
New Page Before is an available format property for Group (header and footer) and Details sections. When you select this option, the program inserts a page break before it prints the section. The page break thus comes before:
  • The group (if using the option with a Group footer section).

  • Each report record (if using the option with a Details section).

The Page Header and Page Footer appear on each page. If you have a subtotal or summary field in a Group Footer section, you can use the New Page Before option to put these values on pages following the value being totaled.

Hint
In order to avoid blank pages, use the conditions Not OnFirstRecord and Not OnLastRecord with New Page Before or New Page After
Reset Page Number After

This option causes the page number to return to one after the section is complete. Normally, this feature is applied to a Group Footer. Therefore, if one group spans several pages, you see page 1, page 2, and so on, of the group. Then, when Crystal Reports goes to the next group, you see page 1, page 2, and so on, again.

New Page After

When the End of Section check box is selected, the program inserts a page break after the section.

  • The Page Header and Page Footer appear on each page.

  • Use New Page After in the Group footer section to print each group on a separate page.

When the Visible Records check box is selected, the program inserts a page break after a specific number of records.

Note
  • This feature applies only to visible records. Suppressed records may be contained on a page, but will not count toward visible records.

  • This option appears only when you have selected the Details section in the Sections list.

Orientation

Allows you to set page orientation for each section in the report except for the Page Header and Page Footer. The default setting will be the same as the report page orientation in the Page Setup dialog box.

Keep Group Together

Use the Keep Group Together option if you want to avoid breaking up groups across pages.

If a group extends beyond a single page, Crystal Reports begins printing the group at the top of the next empty page, but then breaks the group across pages as necessary.

If the first group in a report extends beyond a single page, and the Keep Group Together check box is selected, Crystal Reports begins printing the group on the second page of the report, instead of the first. To avoid this behavior on the first page of the report, clear the Respect Keep Group Together On First Page check box in the Report Options dialog box.

Note
This option does not appear for the Cross-Tab Group Options dialog box.
Repeat Group Header On Each Page

If you want your group header to repeat on the page following a break within a group, then enable Repeat Group Head On Each Page option. The group header will then repeat for every successive page.

Note
This option does not appear for the Cross-Tab Group Options dialog box.

Set Page Breaks on a Report

Log in to track your progress & complete quizzes