XPRINT GET MARGIN statement

Purpose | Retrieve the margin sizes for the host printer.
Syntax | XPRINT GET MARGIN TO nLeft!, nTop!, nRight!, nBottom!
Remarks | XPRINT GET MARGIN retrieves the size of the margins (the non-printable area) of the printer page. This is important because some printers do not provide equal margins on each side of the page. This is more common on the vertical coordinate, but could be found in either or both directions. The size of the four margins are specified in pixels (or world coordinates, if those were defined with an XPRINT SCALE statement). If executed without a host printer attached, error 57 is generated.
See also | XPRINT ATTACH, XPRINT GET CLIENT, XPRINT GET PPI, XPRINT GET SIZE