KeepWithNext (Property)

Applies To:

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

Description:

Enables you to keep bands within a group together when paginating a report. If the lower band cannot fit on the page when the report is paginated, both bands are moved to the following 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 to keep the body band together when a page is paginated:

ActiveDocument.Sections["Report"].Body.KeepWithNext = true
Recalculate()