| **Navigation:**  [[clarion 7 faqs.htm|How To's and Troubleshooting]] > How to... >====== How to Control Page Breaks ====== | [[how to complete an entry field when the last character is entered.htm|{{btn_prev_n.gif|Previous page}}]][[clarion 7 faqs.htm|{{btn_home_n.gif|Return to chapter overview}}]][[how to control the update buttons of the browse box template.htm|{{btn_next_n.gif|Next 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 band properties.htm|Detail Properties]]** **dialog, containing the options below. You may also set these options for group headers or footers. The options are available in the [[page header properties.htm|Group Header Properties]]** **and [[page footer properties.htm|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 set page break after .htm|PAGEAFTER]] attribute. This prints the DETAIL, then prints the page FOOTER, then begins a new page. {{tipbox.jpg|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 set page break first .htm|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 set widow elimination .htm|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 set orphan elimination .htm|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|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.