setorientation (not supported in Axiell Collections)

Syntax

code = setorientation (type)

Arguments

code: integer

type: 'portrait' or 'landscape'

Platform

Windows (not supported in Axiell Collections and RunAdapl: Collections ignores the function if it is present anyway.)

Meaning

Indicates whether the printing orientation is to be 'portrait' (vertical orientation of paper) or 'landscape' (horizontal orientation of paper). type is a string, so it should be embedded in quotes (as shown) when the function is called. The return code is the error code of the action; this will be 0 if the action is successful. An error code other than zero signifies the error code of the operating system, and will occur, for instance, if the desired orientation is not supported by the selected printer.