Specifies whether page breaks should be inserted before and/or after the section is rendered.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[DefaultValueAttribute(ForcePageBreakEnum.None)]
public ForcePageBreakEnum ForcePageBreak { get; set; }
Visual Basic
<DefaultValueAttribute(ForcePageBreakEnum.None)> _
Public Property ForcePageBreak As ForcePageBreakEnum
	Get
	Set

Remarks

The default value for this property is ForcePageBreakEnum.None.

Examples

The following VBScript uses the section's ForcePageBreak property to cause a page break when 20 detail lines have been printed on the current page. Type the following script code directly into the VBScript Editor of the Detail section's Section.OnPrint property:

Copy CodeC#
cnt = cnt + 1
detail.forcepagebreak = "none"

If cnt >= 20 Then
  cnt = 0
  detail.forcepagebreak = "after"
End If

For details, see the Controlling Page Breaks topic.

See Also