1. Home
  2. Foxit Quick PDF Library
  3. Get list of available paper trays for printer

Get list of available paper trays for printer

In order to get a list of the available paper trays for a printer you need to use the GetPrinterBins function in Foxit Quick PDF Library. This function will return a list of the available paper trays and associated values. You can then use the returned value with the SetupCustomPrinter function to print your documents to the relevant paper tray.

Here’s some sample code in C# to show you how to use the relevant functions.

string printerName = DPL.GetDefaultPrinterName();
string bins = DPL.GetPrinterBins(printerName);
Updated on April 10, 2017

Was this article helpful?

Related Articles

Ready to try Foxit PDF SDK?
Click the link below to download your trial
Free Trial

Leave a Comment