StarPrinter
The class that controls the printer
Constructor |
|
---|---|
Initialize object |
Property |
Default value |
Type |
|
---|---|---|---|
Printer information |
undefined |
StarPrinterInformation | undefined |
|
Printer connection settings |
Value set in constructor |
||
Template |
undefined |
string | undefined |
|
Error details |
- |
Promise<StarIO10ErrorDetail> |
|
Status event for the printer |
new PrinterDelegate() |
||
Status event for the cash drawer |
new DrawerDelegate() |
||
Status event for an input device |
new InputDeviceDelegate() |
||
Status event for the customer display |
new DisplayDelegate() |
||
Open timeout (msec) |
10000 |
||
Print timeout (msec) |
30000 |
||
Get status timeout (msec) |
5000 |
||
Set/Get Star Configuration timeout(msec) |
90000 |
Method |
|
---|---|
Open the printer |
|
print(command: string, starSpoolJobSettings: StarSpoolJobSettings) |
Print using the printer’s spooler function |
Print binary data |
|
Get the printer status |
|
Get the print job status of the specified print job ID |
|
Get the print job history (List of print job status) for the specified number of jobs from the most recent. |
|
Get the present Star Configuration |
|
Get the default Star Configuration |
|
Set Star Configuration |
|
Close the printer |
|
Dispose the object |