PtrDevice:PaperWidth Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:PaperWidth Access/Assign

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

Purpose

The access returns the width of the selected paper in tenths of millimeters.  WARNING:  This access can return 0. Normally, you should use the PtrDevice:PaperWidthInches access.

 

The assign allows you specify the width of the paper in millimeters.  WARNING:  This assign is not supported by all printer drivers.

Example

// What is the paper length in millimeters?

nPaperWidth := oPtrDevice:PaperWidth

if nPaperWidth > 0

         // can use this value

endif