Connect Method

Opens a connection to the printer identified in the class constructor.

C#

public void Connect();

Remarks

After the connection is successfully opened, it sends the commands specified in the Initialize and NormalFont settings to the printer. These settings are defined in the commands and attributes string specified in the class constructor.

The application must call this method to connect to the printer before invoking other methods to interact with the printer; otherwise, a PrinterException will be thrown.

Exceptions

PrinterException