Foxit Quick PDF Library

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

This article refers to a deprecated product. If you are looking for support for Foxit PDF SDK, please click here.

Updated on May 16, 2022

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: