Retrieves a list of printers supported by a specific LinePrinter configuration file.
[Visual Basic]
Overloads Public Shared Function EnumeratePrinters( _
ByVal FileName As String _)
As String(,)
[C#]
public static string[,] EnumeratePrinters(
string FileName
);
FileName
Name of configuration file to retrieve list of supported printers from. Will first look for configuration file in directory executable is run from, then root directory.
A two dimensional string array in the form of [n,2], where n is the number of printers supported by the configuration file.
For each printer n in the array, [n,0] is the name of the printer element in the configuration file, and [n,1] is the text of the EntryName property for that element. If the EntryName element is not specified, then [n,1] is the same as [n,0].
Will return an array [n,2] of strings, where n is the number of printers supported by the configuration file specified. Each line n of the array will provide both the text of the printer element, used by the constructor, and a displayable name for the printer if it was specified with a DisplayName property. If no DisplayName property was found for the printer, then both elements of the array line will be the element text.