NewPage (Report controls)

Description

Whether a nested report starts on a new page. NewPage applies only to reports in a composite DataWindow. Note that if the Trail_Footer property of the preceding report is set to No, the current report will be forced to begin on a new page regardless of the NewPage value.

Applies to

Report controls

Syntax

PowerBuilder dot notation:

dw_control.Object.reportname.NewPage

Describe and Modify argument:

"reportname.NewPage { = value } "

Parameter

Description

reportname

The name of the report control for which you want to get or set the NewPage property.

value

Whether the report begins a new page.

Values are:

  • Yes – Start the report on a new page.

  • No – Do not start the report on a new page.

Usage


In the painter

Select the Report control in the Composite presentation style and set the value in the Properties view, General tab, New Page check box.

Examples

Example 1

string newpage_setting

newpage_setting = dw1.Object.rpt_1.NewPage

dw1.Object.rpt_1.NewPage = "Yes"

Example 2

newpage_setting = dw1.Describe("rpt_1.NewPage")

dw1.Modify("rpt_1.NewPage=Yes")