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>hpsetlpi()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpSetLPI()

Set the number of lines you want to print per vertical inch of your page


Syntax

hpSetLPI(<nLPI>)


Parameters

<nLPI>
The number of lines per inch.  Values for <nLPI> can be
any factor of 48: 1, 2, 3, 4, 6, 8, 12, 16, 24, or 48.


Returns

0
Successful.

-8
Invalid # of lines per inch.

-12
Wrong number of parameters passed.


Remarks

Occasionally you may want to change the line spacing on your page,
perhaps to increase readability, or simply to fit your whole report on
one page.  hpSetLPI() can be called at anytime during your print job to
switch to the desired lpi spacing.


Support By

All HP Laserjet Printers


Example

hpPrintOn()
hpConfig()
hpSetFont('LINEPRT 16', 'I')
hpSetLPI(8)
.
.       // Report at 8 lines per inch
.
hpReset()
hpPrintOff()

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