PtrDevice:HPixelsPerInch Access

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:HPixelsPerInch Access

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

Purpose

Returns the horizontal resolution of the printer (pixels per inch).  This value is generally the same as the PtrDevice:XPrinterRes except this access uses GetDeviceCaps(LOGPIXELSX) to get the printer resolution.

Example

// get the horizontal pixels per inch

? oPtrDevice:HPixelsPerInch