SET MARGIN Command

Sets the left printer margin and affects all output directed to the printer.

SET MARGIN TO nColumns

Parameters

  • nColumns
    Specifies the left margin in columns. The default is 0 columns; the maximum is 256.

Remarks

If you use SET MARGIN to adjust the left margin, the value specified with SET MARGIN is stored to the system variable _PLOFFSET. You can also set the left margin by storing a value directly to _PLOFFSET. The value of the system variable _LMARGIN also affects the left margin setting.

Note

The left margin setting specified in SET MARGIN does not affect reports created with the Report Designer or Label Designer and then run with a REPORT FORM or LABEL command. The Left Margin setting in the Report Page Setup dialog box in the Report Designer determines the offset from the left edge of the paper. For more information, see Report Page Setup Dialog Box and Page Layout Tab, Report Properties Dialog Box (Report Builder).

See Also

Reference

_LMARGIN System Variable

_PLOFFSET System Variable

_RMARGIN System Variable

SET Command Overview

Other Resources

Commands (Visual FoxPro)

Language Reference (Visual FoxPro)