Retrieves a configuration string from the printer. Use this method if the Port Type specified in the configuration file is COMx:, WPPORT, or SOCKET.
[Visual Basic]
Public Function GetConfiguration(portString As string) As String
[C#]
public string GetConfiguration(string portString);
portString
If the Port Type specified in the configuration file is COMx: or WPPORT, this value is the new port that replaces the port specified in the configuration file.
If the Port Type specified in the configuration file is SOCKET, this value can be any of the following:
A configuration string as returned by the printer. An empty or null string indicates that the printer is incapable of this function based on a missing or null entry in the printer configuration file.
This method may only be called from outside a print job. This function opens the printer, retrieves data, and closes the printer afterwards.
The portString parameter replaces the network address and port specified in the configuration file, allowing easier programmatic determination of the network printer target.