RpPrinter:UnitOfMeasure Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > RpPrinter Class >

RpPrinter:UnitOfMeasure Assign

Previous pageReturn to chapter overviewNext page
Type        16-bit: ShortInt, 32-bit: LongInt

Purpose

This assign allows you to set the unit of measurement used by the RpPrinter.  Valid settings are:

 

UNIT_CHARS

 Characters.  This sets the unit of measure to character mode.  The character size is based on the AvgCharWidth and AvgCharHeight accesses.

UNIT_CM

 Centimeters.  

UNIT_INCHES

 Inches.

UNIT_MM

 Millimeters.

UNIT_PIXELS

 Logical Pixels.

Example

// Set the unit of measure to centimeters

oRpPrinter:UnitOfMeasure := UNIT_CM