Options.DefaultTray Property
Returns or sets the default tray your printer uses to print documents.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property DefaultTray As String
Get
Set
'Usage
Dim instance As Options
Dim value As String
value = instance.DefaultTray
instance.DefaultTray = value
string DefaultTray { get; set; }
Property Value
Type: System.String
Remarks
When setting this property, you must specify a string found in the Default tray box on the Print tab in the Options dialog box. You can use the DefaultTrayID property and specify a WdPaperTray constant to set this same option.