Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Escape! V3.0 - <b>hpclrmargins()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpClrMargins()

Reset left and right margins


Syntax

hpClrMargins()


Returns

0
Successful.


Remarks

hpClrMargins() resets the left and right margins.  The left margin is set
to column 0 of the logical page and the right margin is set to the right
edge of the logical page.

After changing left or right margins with hpLRMargin(), you can set them
back to their default settings using hpClrMargins().  hpClrMargins() is
helpful when you need to change margin settings more than once on the
same page because it doesn't cause your page to eject as a reset does.


Support By

All HP Laserjet Printers


Example

hpPrintOn()
hpConfig()
hpSetFont()
.
.  // print routine using default margin settings
.
hpLRMargin(20,60)
.
.  // print routine using new margin settings
.
hpClrMargins()
.
.  // print again using default margin settings
.
hpReset()
hpPrintOff()

See Also: hpLRMargin() hpTMargin()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson