Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SET MARGIN Command

Visual Studio .NET 2003

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 doesn't affect reports created with the Report Designer and then run with REPORT. Although _PLOFFSET is adjusted during the running of a report created with the Report Designer, it is reset to its original value after the report is run. The Left Margin setting in the Page Setup dialog box of the Report Designer determines the offset from the left edge of the paper. Choose Page Setup from the File menu to display the Page Setup dialog when the Report Designer is open.

See Also

_LMARGIN | _PLOFFSET | _RMARGIN

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.