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

Converts vertical line position to millimeters


Syntax

hpL2M(<nLine>)


Parameters

<nLine>
The row coordinate to convert to millimeters.


Returns

<n>
Millimeter equivalent of row coordinate.

-10
Font information is missing.  hpSetFont( ) must be called first.

-12
Wrong number of parameters passed.


Remarks

To print using proportional fonts, the horizontal placement of text must
always be positioned using some physical unit of measurement other
than column position.  This, of course, is due to the fact that column
size varies when using proportional fonts.  See "Appendix D -
Programming Hints" for more on programming with proportionally
spaced fonts.  Escape! allows you to solve this problem by placing text
by either inches or millimeters.  When using millimeters, hpL2M() can
be very useful in allowing you to continue to specify vertical position in
rows.


Support By

All HP Laserjet Printers


Example

In this example, see how you can print a report with proportionally
spaced fonts.  Horizontal position will be specified in millimeters while
vertical positon will be specified in rows using hpL2M().

hpPrintOn()
hpConfig()
hpSetFont('HELV 12B', 'Z')
nRow := 1
DO WHILE .NOT. EOF()
   .
   .
   .

See Also: hpC2M() hpL2I() hpS2M()

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