Get a paper bin ID.
getBinID([in] BSTR printerName, [in] int binIdx, [out, retval] int *binID)
This function returns the ID for the binIdxth available paper bin, on the specified printer.

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

The returned value can be used to set the binID property.

Note: getNumBins, getBinName, and getBinID 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).

printerName = "...your printer name here..." nBins = pdf.getNumBins(printerName) For i = 0 To nBins - 1 binName = pdf.getBinName(printerName, i) binID = pdf.getBinID(printerName, i) Print("bin " & i & ": id=" & binID & " name=" & binName) Next i