getPrinterBinName

Get a paper bin name.
getPrinterBinName([in] BSTR printerName, [in] int binIdx, [out, retval] BSTR *binName)
This function returns the name of the binIdxth available paper bin, on the specified printer.

binIdx must be between 0 and n-1, where n is the value returned by getNumPrinterBins.

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).

VB6:
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
getNumPrinterBins
getPrinterBinID