PtrDevice:GetPaperBins() Method
<< Click to Display Table of Contents >> PtrDevice:GetPaperBins() Method |
![]() ![]() ![]() |
Purpose
To retrieve a list of paper bins supported by the printer.
Syntax
<oPtrDevice>:GetPaperBins() → aBins (ARRAY)
Description
This method returns a two dimensional array that contains the bins supported by the current printer. The array has the following format:
aBins[x,1] = name of the bin ("Auto")
aBins[x,2] = constant that Windows uses to identify the bin
See oPtrDevice:DefaultPaperSource for a listing of the Windows constants.
If the method fails, an empty array is returned.
Example
// ? the supported paper bins
aBins := oPtrDevice:GetPaperBins()
for nLp := 1 to alen(aBins)
? aBins[nLp,1]
next nLp