Show / Hide Table of Contents

Class PrinterCommunication

Specifies information about printer communication like USB, Serial Port RS-232, Parallel Port (Centronics), and Network (Ethernet) connectivity.

Inheritance
System.Object
PrinterCommunication
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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

HidProductId

Gets or sets the USB Product ID (PID) of the HID printer device. Used only if the CommunicationType property is set up to HID value. Default value is 0

Declaration
public int HidProductId { get; set; }
Property Value
Type Description
System.Int32
Remarks

Used together with HidVendorId to locate the target device when PrinterName does not already specify a full HID device path (i.e. it does not contain "VID_xxxx" and "PID_xxxx").

HidReadTimeout

Gets or sets the amount of time in milliseconds to wait for an Input Report when reading from the HID device in a BIDI communication scenario. Used only if the CommunicationType property is set up to HID value. Default value is 1500

Declaration
public int HidReadTimeout { get; set; }
Property Value
Type Description
System.Int32

HidReportId

Gets or sets the HID Report ID used to prefix every Output/Input report sent to/read from the device. Used only if the CommunicationType property is set up to HID value. Default value is 0

Declaration
public byte HidReportId { get; set; }
Property Value
Type Description
System.Byte
Remarks

Most HID printers do not use Report IDs, so 0 is the correct value in the vast majority of cases. Set it only if the target device's HID Report Descriptor declares non-zero Report IDs.

HidUsageId

Gets or sets the HID Usage ID used to disambiguate which Top Level Collection to open when the device exposes more than one (composite HID devices). Used only if the CommunicationType property is set up to HID value. Default value is -1 (not used)

Declaration
public int HidUsageId { get; set; }
Property Value
Type Description
System.Int32

HidUsagePage

Gets or sets the HID Usage Page used to disambiguate which Top Level Collection to open when the device exposes more than one (composite HID devices). Used only if the CommunicationType property is set up to HID value. Default value is -1 (not used)

Declaration
public int HidUsagePage { get; set; }
Property Value
Type Description
System.Int32

HidVendorId

Gets or sets the USB Vendor ID (VID) of the HID printer device. Used only if the CommunicationType property is set up to HID value. Default value is 0

Declaration
public int HidVendorId { get; set; }
Property Value
Type Description
System.Int32
Remarks

Used together with HidProductId to locate the target device when PrinterName does not already specify a full HID device path (i.e. it does not contain "VID_xxxx" and "PID_xxxx").

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
Back to top Copyright © 2003- Neodynamic SRL
http://www.neodynamic.com