Properties that control the print preview of a DataWindow.
DataWindows
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:
Painter: Display Buttons – Print Preview. |
Outline |
Whether a blue line displays to show the location of the margins. Values are:
Painter: Print Preview Shows Outline |
Rulers |
Whether the rulers display when the DataWindow object displays in preview mode. Values are:
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.. |
Select the DataWindow by deselecting all controls; then set values in the Properties view, Print Specifications tab.
dw1.Object.DataWindow.Print.Preview.Buttons = 'Yes'
setting = dw1.Describe ("DataWindow.Print.Preview.Buttons")
dw1.Modify("DataWindow.Print.Preview.Buttons = 'Yes'")
dw1.Object.DataWindow.Print.Preview.Rulers = 'Yes'
setting = dw1.Describe ("DataWindow.Print.Preview.Rulers")
dw1.Modify("DataWindow.Print.Preview.Rulers = 'Yes'")