Creates a new instance of the LinePrinter and loads the necessary information for the chosen printer from the specified printer configuration file.
After you create the LinePrinter instance, call LinePrinter.Open. The constructor looks for the printer configuration file in the same directory as the EXE and then looks in the root directory if the configuration file is not at that location.
[Visual Basic]
Public Sub New( _
ByVal FileName As String, _
ByVal Printer As String _ )
[C#]
public LinePrinter(
string FileName,
string Printer
);
FileName
XML printer parameters file.
Printer
Printer reference in printer parameters file.
See the LinePrinterException class for more information.