Print.Preview.property

Description

Properties that control the print preview of a DataWindow.

Applies to

DataWindows

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.Print.Preview.property

Describe and Modify argument:

"DataWindow.Print.Preview.property { = value }"

SyntaxFromSql:

DataWindow ( Print.Preview.property = value )

Parameter

Description

property

A property for print preview. Properties and their settings are listed in the table below.

value

The value to be assigned to the property. Value cannot be a DataWindow expression.

Property for Print.Preview

Value

Buttons

Whether buttons display in print preview.

Values are:

  • Yes – Buttons are displayed.

  • No – (Default) Buttons are not displayed.

Painter: Display Buttons – Print Preview.

Outline

Whether a blue line displays to show the location of the margins.

Values are:

  • Yes – (Default) Margin outline is displayed.

  • No – Margin outline is not displayed.

Painter: Print Preview Shows Outline

Rulers

Whether the rulers display when the DataWindow object displays in preview mode. Values are:

  • Yes – Display the rulers.

  • No – (Default) Do not display the rulers.

You can view rulers in Preview mode in the DataWindow painter. With the Preview view selected, select File>Print Preview, then File>Print Preview Rulers. However, the setting is not used at runtime. To see rulers at runtime, set Print.Preview.Rulers in code..

Zoom

An integer indicating the zoom factor of the print preview. The default is 100%.

You can view different zoom percentages in Preview mode in the DataWindow painter. With the Preview view selected, select File>Print Preview, then File>Print Preview Zoom. However, the setting is not used at runtime. To change the zoom factor at runtime, set Print.Preview.Zoom in code..

Usage


In the painter

Select the DataWindow by deselecting all controls; then set values in the Properties view, Print Specifications tab.

Examples

Example 1

dw1.Object.DataWindow.Print.Preview.Buttons = 'Yes'

Example 2

setting = dw1.Describe
		("DataWindow.Print.Preview.Buttons")

Example 3

dw1.Modify("DataWindow.Print.Preview.Buttons = 'Yes'")

Example 4

dw1.Object.DataWindow.Print.Preview.Rulers = 'Yes'

Example 5

setting = dw1.Describe
		("DataWindow.Print.Preview.Rulers")

Example 6

dw1.Modify("DataWindow.Print.Preview.Rulers = 'Yes'")

See also