Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.93 SetPage Method

Description:

Displays the Page Setup dialog allowing the user to configure page details before printing.

Values set in the dialog update the following Print control properties:

BottomMargin

LeftMargin

PaperOrientation

PaperType

PrinterName

RightMargin

Source

TopMargin

Used in controls:

Print

Used in objects:

None.

Parameters:

[VT_I4 DisableSettingS9(9) COMP-5]

Description of Parameters:

Defines which of the features in the dialog to disable. If no parameter is provided all features are enabled. The following constants can be used to set the styling.

POW-DISABLEMARGINS: Margins
POW-DISABLEPRINTER: Printer setting
POW-DISABLEORIENTATION: Orientation
POW-DISABLEPAPER: Paper
POW-DISABLEPAGEPAINTING: Layout

Return value:

VT_BOOL - ReturnValueS9(4) COMP-5

POW-TRUE means the OK button was pushed.
POW-FALSE means the Cancel button was pushed.

Example:

INVOKE CmPrint1 "SetPage"
  USING     DialogStyle
  RETURNING ReturnValue

Backward compatibility
method name:

None.