Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
PrintDialog.SetTray
Sets the tray name the plugin should select.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
PrintDialog
|
6.1 |
✅ Yes |
❌ No |
❌ No |
❌ No |
❌ No |
MBS( "PrintDialog.SetTray"; Value )
More
MBS(
"PrintDialog.SetTray"; /* Sets the tray name the plugin should select. */
$Value) /* The name of the tray to use.e.g. "Tray1" */
Less
Parameters
Parameter |
Description |
Example |
Value |
The name of the tray to use. |
"Tray1" |
Result
Returns OK or error.
Description
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.
Please print once with dialog to pick a tray and then query PrintDialog.GetLastSettings to lookup the internal tray name. Usually named InputSlot in the settings.
Warning: For some users the dialog loads last settings and overwrite this settings, so you may need to not show dialog.
Examples
Set Tray-2 as the tray for paper:
MBS("PrintDialog.SetTray"; "Tray-2")
See also
Blog Entries
This function checks for a license.
Created 10th February 2016, last changed 8th December 2022
PrintDialog.SetReverseOrder
-
Printer.CurrentNumberOfCopies