|
Summary
Select a default printer.
Syntax
Boolean SelectPrinter ()
Description
The VtAction property and some methods can be used to configure the printer to be used with the VT220 ActiveX control. Calling the SelectPrinter method will select the default printer to be
used.
The SelectPrinter method takes no parameters and returns a boolean. If a default printer can be successfully selected, then the method returns True; otherwise, it returns False. The application
should ensure that the method was successfully executed by checking the return value.
Calling this method is equivalent to setting the VtAction property to VT_PRINTER_SELECT. This method can only be called after the VT220 emulation window has been created and initialized.
Example
Result = VT220Client.SelectPrinter () If Result = False Then MsgBox "Cannot select printer", 64, "Sample Program" Exit Sub End
If
|