Added in Version 1.0.0

StarPrinter

The class that controls the printer

Constructor

StarPrinter(connectionSettings: StarConnectionSettings)

Initialize object

Property

information

Printer information

StarPrinterInformation

connectionSettings

Printer connection settings

StarConnectionSettings

template

Template

string

printerDelegate

Status event for the printer

PrinterDelegate

drawerDelegate

Status event for the cash drawer

DrawerDelegate

inputDeviceDelegate

Status event for an input device

InputDeviceDelegate

displayDelegate

Status event for the customer display

DisplayDelegate

openTimeout

Open timeout (msec)

number

printTimeout

Print timeout (msec)

number

getStatusTimeout

Get status timeout (msec)

number

starConfigurationTimeout

Set/Get Star Configuration timeout(msec)

number

Method

open()

Open the printer

print(command: string)

Print

print(command: string, starSpoolJobSettings: StarSpoolJobSettings)

Print using the printer’s spooler function

printRawData(data: Array<number>)

Print binary data

getStatus()

Get the printer status

getSpoolJobStatus(jobId: number)

Get the print job status of the specified print job ID

getSpoolJobStatusList(size: number)

Get the print job history (List of print job status) for the specified number of jobs from the most recent.

getStarConfiguration(password: string? = null)

Get the present Star Configuration

getDefaultStarConfiguration()

Get the default Star Configuration

setStarConfiguration(starConfiguration: string)

Set Star Configuration

close()

Close the printer

dispose()

Dispose the object