ForceNewPage Property

Applies To

Form Section, Report Section.

Description

You can use the ForceNewPage property to specify whether form (header, detail, footer) or report (header, detail, footer) sections print on a separate page, rather than on the current page. For example, you may have designed the last page of a report as an order form. If the report footer’s ForceNewPage property is set to Before Section, the order form is always printed on a new page.

Note The ForceNewPage property does not apply to page headers or page footers.

Setting

The ForceNewPage property uses the following settings.

Setting

Description

Visual Basic

None

(Default) The current section (the section for which you’re setting the property) is printed on the current page.

0

Before Section

The current section is printed at the top of a new page.

1

After Section

The section immediately following the current section is printed at the top of a new page.

2

Before & After

The current section is printed at the top of a new page, and the next section is printed at the top of a new page.

3


You can set this property using the section’s property sheet, a macro, or Visual Basic.

Remarks

Here are some examples of the ForceNewPage property setting.

Section

Sample setting

Description

A group header displaying the year

Before Section

The group header is printed at the top of the page, followed by the detail section, group footer, and page footer.

A report detail section

After Section

The group footer is printed at the top of a new page.

A report header containing the report title and company logo.

After Section

The report title and logo are printed on a separate page at the beginning of the report.


See Also

Format Event; KeepTogether Property - Groups; NewRowOrCol Property; Page, Pages Properties.

Example

The following example returns the ForceNewPage property setting for the detail section of the Sales By Date report and assigns it to the intGetVal variable.


Dim intGetVal As Integer= Reports![Sales by Date].Section(0).ForceNewPage