Options
All
  • Public
  • Public/Protected
  • All
Menu

It represents a printer which is connected through a serial port (RS232) in the client machine.

Hierarchy

  • SerialPortPrinter

Implements

Index

Constructors

  • Creates an instance of the SerialPortPrinter class wiht the specified information.

    Parameters

    • portName: string

      The serial port name, for example COM1.

    • baudRate: number

      The serial port baud rate in bits per second.

    • parity: Parity

      The serial port parity-checking protocol.

    • stopBits: StopBits

      The serial port standard number of stopbits per byte.

    • dataBits: DataBits

      The serial port standard length of data bits per byte.

    • flowControl: Handshake

      The handshaking protocol for serial port transmission of data.

    Returns SerialPortPrinter

Properties

Id: number = 3

The Client Printer ID

Accessors

  • get baudRate(): number
  • set baudRate(value: number): void
  • Gets or sets the serial port baud rate in bits per second. Default value is 9600

    Returns number

  • Gets or sets the serial port baud rate in bits per second. Default value is 9600

    Parameters

    • value: number

    Returns void

  • Gets or sets the serial port standard length of data bits per byte. Default value is Serial.DataBits.Eight

    Returns DataBits

  • Gets or sets the serial port standard length of data bits per byte. Default value is Serial.DataBits.Eight

    Parameters

    Returns void

  • Gets or sets the handshaking protocol for serial port transmission of data. Default value is Serial.Handshake.XOnXOff

    Returns Handshake

  • Gets or sets the handshaking protocol for serial port transmission of data. Default value is Serial.Handshake.XOnXOff

    Parameters

    Returns void

  • Gets or sets the serial port parity-checking protocol. Default value is Serial.Parity.None

    Returns Parity

  • Gets or sets the serial port parity-checking protocol. Default value is Serial.Parity.None

    Parameters

    Returns void

  • get portName(): string
  • set portName(value: string): void
  • Gets or sets the serial port name, for example COM1. Default value is "COM1"

    Returns string

  • Gets or sets the serial port name, for example COM1. Default value is "COM1"

    Parameters

    • value: string

    Returns void

  • Gets or sets the serial port standard number of stopbits per byte. Default value is Serial.StopBits.One

    Returns StopBits

  • Gets or sets the serial port standard number of stopbits per byte. Default value is Serial.StopBits.One

    Parameters

    Returns void

Methods

  • serialize(): string
  • The Client Printer serialization.

    Returns string