Reflection
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.

See Also