Checking printer tray Status ?

Checking printer tray Status ?

Forum member · Jun 15, 2010
We have a need to print different versions of each document on various types of paper dispatched in different trays. However, when I do a printjob.print(); with an empty tray (or a disabled/non existing one), it switches to a another one and prints anyway. For instance let us say that Tray 4 is out of paper but not Tray 1. If I do: PrintJob printjob = new PrintJob("myPrinter", myInputPdf); printjob.PrintOptions.SetPaperSourceByName("Tray 4"); printjob.Print(); It still prints out my document but uses Tray 1 instead. This is something we would like to avoid as several copies of a same documents are printed using different types of paper. Is it possible to control a tray's status before printing a document or is there anything that can be done? Thanks

Re: Checking printer tray Status ?

Support · Jun 15, 2010
Hello, The behavior you are seeing is because the printer is designed to behave that way when the tray runs out of paper. There is nothing in our API which is causing this behavior. It is not possible to control the tray status before printing the document using our API. Thanks, ceTe Software Support Team