PtrDevice:PaperLength Access/Assign
<< Click to Display Table of Contents >> PtrDevice:PaperLength Access/Assign |
![]() ![]() ![]() |
Type | 16-bit: ShortInt, 32-bit: LongInt |
Purpose
The access returns the length of the selected paper in tenths of millimeters. WARNING: This access can return 0. Normally, you should use the PtrDevice:PaperLengthInches access.
The assign lets you specify the length of the paper in millimeters. WARNING: This assign is not supported by all printer drivers.
Example
// What is the paper length in millimeters?
nPaperLength := oPtrDevice:PaperLength
if nPaperLength > 0
// can use this value
endif