Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets the tray name the plugin should select.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PrintDialog 6.1 Yes No No No No
MBS( "PrintDialog.SetTray"; Value )   More


Parameter Description Example value
Value The name of the tray to use. "Tray1"


Returns OK or error.


Sets the tray name the plugin should select.
Value may be Tray1, Tray2, tray-1, tray-2, auto, Left, Right, Lower, Middle, Upper and depends on the printer driver. This is not the name displayed in dialog, but the internal value which is the same for all localization.
Same as using PrintDialog.SetOption with "InputSlot" as key and tray name as value.


Set Tray-2 as the tray for paper:

MBS("PrintDialog.SetTray"; "Tray-2")

See also

Blog Entries

Created 10th February 2016, last changed 15th May 2017

PrintDialog.SetResetDestination   -   Printer.CurrentNumberOfCopies

Feedback: Report problem or ask question.

MBS Xojo blog