getNumPrinterBins
Get the number of available paper bins/trays.
getNumPrinterBins([in] BSTR printerName, [out, retval] int *numBins)
This function returns the number of available paper bins on the
specified printer.
Note: getNumPrinterBins
, getPrinterBinName
, and
getPrinterBinID
are just simple wrappers around Windows functions.
There is no requirement to use these functions if you already know the
bin ID that you want to use (e.g., from
calling DeviceCapabilities
with the DC_BINS
argument).
VB:
printerName = "...your printer name here..."
nBins = viewer.getNumPrinterBins(printerName)
For i = 0 To nBins - 1
binName = viewer.getPrinterBinName(printerName, i)
binID = viewer.getPrinterBinID(printerName, i)
Print("bin " & i & ": id=" & binID & " name=" & binName)
Next i