setMargins

Syntax: setMargins document, marginRect

This command sets the margins of a document object. The marginRect parameter is in the form of a Lingo Rect. Values are specified in the format Rect(left, top, right, bottom). The measurements are in points (72 points to the inch). Since this method changes the whole coordinate system of the document, your document must be empty when you call setMargins. Call reset on your document beforehand just to make sure.

Example:

The following example creates a new document and sets the margins to two inches (144 points) on the left, and one inch (72 points) on all other sides.

set doc = new(xtra "PrintOMatic")

if not objectP(doc) then exit

setMargins doc, Rect(144,72,72,72)