KeepTogether (Property)

Applies To:

PageHeader object, PageFooter object, ReportHeader object, ReportFooter object, Body object

Description:

Enables you not to split a band when a break is encountered. When a break is encountered, the entire band is moved to the next page.

Note:

When using this property and the SuspendCalculation (Property) is true (which it is by default), use the Recalculate (Method) to recalculate the Report section.

Action:

Read-write, Boolean

Example:

This example shows how not to split the page header bade when a break is encountered in a report:

ActiveDocument.Sections["Report"].PageHeader.KeepTogether
Recalculate()