GetMarginMeasure

Description

Returns current units of measure for print-out margins, either millimeters or inches. Use SetMarginMeasure to switch the default units.

Syntax

units = printing.GetMarginMeasure()

Returns the currently-set units of measure: 1 stands for millimeters, 2 for inches.

Example

Check out the source code of the ScriptX Controlling margins sample.