LinePrinter Constructor

Creates a new instance of the LinePrinter. Must set the LinePrinter.PrinterID property to a valid entry in the configuration file before calling LinePrinter.Open or an exception will be thrown.

The constructor looks for ITC_CONFIG.XML in the same directory as the EXE and then looks in the root directory if the configuration file is not at that location.

Syntax

[Visual Basic]
Public Sub New( _ )
[C#]
public LinePrinter();

Parameters

None.

Exceptions

See the LinePrinterException class for more information.

Example

This example creates a new instance of the LinePrinter. The PrinterID (Printer6820NPCP) matches an entry in the configuration file.

public LinePrinter lp;
lp = new LinePrinter();
.
.
.
lp.PrinterID = "Printer6820NPCP";
lp.Open();

More Information

LinePrinterClass