Added in Version 1.0.0

StarPrinter

プリンターを制御するクラス

コンストラクタ

StarPrinter(connectionSettings: StarConnectionSettings)

オブジェクトの初期化

プロパティ

information

プリンターの情報

StarPrinterInformation

connectionSettings

プリンターとの接続設定

StarConnectionSettings

template

テンプレート

string

printerDelegate

プリンターのステータスイベント

PrinterDelegate

drawerDelegate

キャッシュドロアーのステータスイベント

DrawerDelegate

inputDeviceDelegate

入力機器のステータスイベント

InputDeviceDelegate

displayDelegate

カスタマーディスプレイのステータスイベント

DisplayDelegate

openTimeout

接続タイムアウト(msec)

number

printTimeout

印刷タイムアウト(msec)

number

getStatusTimeout

ステータス取得タイムアウト(msec)

number

starConfigurationTimeout

Star Configuration設定・取得タイムアウト(msec)

number

メソッド

open()

プリンターと接続

print(command: string)

プリンターに印刷を実行

print(command: string, starSpoolJobSettings: StarSpoolJobSettings)

プリンターのスプーラー機能を利用して印刷を実行

printRawData(data: Array<number>)

プリンターにバイナリデータの印刷を実行

getStatus()

プリンターのステータスを取得

getSpoolJobStatus(jobId: number)

指定した印刷ジョブの印刷ジョブステータスを取得

getSpoolJobStatusList(size: number)

最新から指定された件数分のプリンターの印刷ジョブ履歴(印刷ジョブステータスのリスト)を取得

getStarConfiguration(password: string? = null)

プリンターの現在のStar Configurationを取得

getDefaultStarConfiguration()

プリンターのデフォルトのStar Congirutaionを取得

setStarConfiguration(starConfiguration: string)

プリンターにStar Configurationの設定を実行

close()

プリンターと切断

dispose()

オブジェクトの破棄