Attachmate Reflection 2014 .NET API Reference
DefaultPrinter Property


Gets or sets the default printer to which Reflection sends printer output.
Syntax
'Declaration
 
Property DefaultPrinter As String
'Usage
 
Dim instance As ITerminal
Dim value As String
 
instance.DefaultPrinter = value
 
value = instance.DefaultPrinter
string DefaultPrinter {get; set;}
Remarks
Assigning a default printer with this property has no effect on the default printer used by other Windows applications.

The default printer string consists of the printer name, driver, and port as shown in these examples:

DefaultPrinter = "HP LaserJet 4,WINSPOOL,\\Mynet\Myprint"

DefaultPrinter = "Epson AP-4000,WINSPOOL,LPT1:"

To force Reflection to always use the default printer specified in the Windows Control Panel, set this property to an empty string.

Requirements

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also

Reference

ITerminal Interface
ITerminal Members

Send Feedback