User Tools

Site Tools


how_to_control_page_breaks.htm
Navigation:  How To's and Troubleshooting > How to… >====== How to Control Page Breaks ====== Previous pageReturn to chapter overviewNext page

One of the main considerations when laying out a report is unplanned page breaks. For example, you can't always predict how long or short a group will be. You therefore should plan on how your report will behave when it reaches the end of the page, yet there is still more data (in the group) to print.

There are several options available. Each of them control what happens when a Detail section may be split at the end of a page.

To access the dialogs which allow you to set these options, DOUBLE-CLICK the DETAIL section. Alternatively, select either section and press the Properties button. This displays the Detail Properties dialog, containing the options below.

You may also set these options for group headers or footers. The options are available in the Group Header Properties and Group Footer Properties dialogs.

PAGEAFTER

To print the DETAIL, then force a new page, highlight the Detail, and type a value in the PageAfter property in the Properties Pad dialog. This sets the PAGEAFTER attribute. This prints the DETAIL, then prints the page FOOTER, then begins a new page.

TipBox.jpg

To print a separate page for each record, place the variable strings and/or controls you wish in the DETAIL, and specify the PAGEAFTER attribute in the Detail Properties dialog.

The page number automatically increments, unless you reset it. To reset the page number to a value you specify, type it in the PageAfter property in the Detail's Properties Pad dialog.

PAGEBEFORE

To print the DETAIL structure on a new page, highlight the Detail, and type a value in the PageBefore property in the Properties Pad dialog. This sets the PAGEBEFORE attribute. The report prints the full DETAIL starting at the top of the next page. The report FOOTER, however, prints on the first page.

The page number automatically increments, unless you reset it. To reset the page number to a value you specify, type it in the PageBefore property in the Detail's Properties Pad dialog.

WITHNEXT

To prevent 'widow' elements in a printout, type a value in the KeepNext property in the Properties Pad dialog. This sets the WITHNEXT attribute. A 'widowed' print element is one which prints, but then is separated from the succeeding elements by a page break.

The value specifies the number of succeeding elements to print–a value of '1,' for examples, specifies that the next element must print on the same page, else page overflow puts them on the next.

WITHPRIOR

To prevent 'orphan' elements in a printout, type a value in the KeepPrior property in the Properties Pad dialog. This sets the WITHPRIOR attribute. An 'orphaned' print element is one which prints on a following page, separated from its related items.

The value specifies the number of preceding elements to print–a value of “1,” for example, specifies that the previous element must print on the same page.

TipBox.jpg

When placing subtotals or totals in a DETAIL, use the WITHPRIOR attribute to insure they print with at least one member of the column above it when a page break occurs.

how_to_control_page_breaks.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1