Class PrinterCommunication
Specifies information about printer communication like USB, Serial Port RS-232, Parallel Port (Centronics), and Network (Ethernet) connectivity.
Inheritance
Inherited Members
Namespace: Neodynamic.SDK.Printing
Assembly: cs.temp.dll.dll
Syntax
public class PrinterCommunication
Properties
CommunicationType
Gets or sets the printer communication type. Default value is USB
Declaration
public CommunicationType CommunicationType { get; set; }
Property Value
| Type | Description |
|---|---|
| CommunicationType |
NetworkIPAddress
Gets or sets the Internet Protocol (IP) address assigned to the printer. Default value is None
Declaration
public IPAddress NetworkIPAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| IPAddress |
Remarks
If the IP address is not specified i.e. it is IPAddress.None, then the PrinterName property of PrinterSettings class will be used as the Printer's Host Name.
NetworkPort
Gets or sets the port number assigned to the printer. Default value is 0
Declaration
public int NetworkPort { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
NetworkTimeout
Gets or sets the network amount of time in milliseconds. Default value is 1500
Declaration
public int NetworkTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ParallelPortName
Gets or sets the parallel port name, for example LPT1. Default value is "LPT1"
Declaration
public string ParallelPortName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SerialPortBaudRate
Gets or sets the serial port baud rate in bits per second. Default value is 9600
Declaration
public int SerialPortBaudRate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SerialPortDataBits
Gets or sets the serial port standard length of data bits per byte. Default value is 8
Declaration
public int SerialPortDataBits { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SerialPortFlowControl
Gets or sets the handshaking protocol for serial port transmission of data. Default value is XOnXOff
Declaration
public SerialPortHandshake SerialPortFlowControl { get; set; }
Property Value
| Type | Description |
|---|---|
| SerialPortHandshake |
SerialPortName
Gets or sets the serial port name, for example COM1. Default value is "COM1"
Declaration
public string SerialPortName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SerialPortParity
Gets or sets the serial port parity-checking protocol. Default value is None
Declaration
public SerialPortParity SerialPortParity { get; set; }
Property Value
| Type | Description |
|---|---|
| SerialPortParity |
SerialPortStopBits
Gets or sets the serial port standard number of stopbits per byte. Default value is One
Declaration
public SerialPortStopBits SerialPortStopBits { get; set; }
Property Value
| Type | Description |
|---|---|
| SerialPortStopBits |
Stream
Gets or sets System.IO.Stream object for writing printer commands to. It is used only if the CommunicationType property is set up to Stream value. Default value is Null
Declaration
public Stream Stream { get; set; }
Property Value
| Type | Description |
|---|---|
| Stream |