Setting paper tray options

 

Through the API, you can control which paper tray is used for printing.

To retrieve information about paper trays, see the following list.

Use

To request

GetPrinterTrayCount

The number of paper trays in the current printer

GetPrinterTrayID

The identifier of the current paper tray

GetPrinterTrayIDs

The identifiers of all paper trays on the current printer

GetPrinterTrayNames

The names of all paper trays on the current printer

GetPrinterTrayIDNames

The number, names, and identifiers of all paper trays on the current printer

Using the paper tray information you requested, you can select another paper tray.

To set the current paper tray:

· Use the SetPrinterTrayID transaction.

See also