ePOS-Print API Users Manual
Page 12
...empty print command and checking the status of the TM printer based on the result of command transmission. (Supported in firmware Ver.1.2 and later) ❏ To change the printer settings, utility programs dedicated to each printer or other TM printer via TM-i. ❏ Provides ePOS-Print API and ePOS-.... ❏ No PCs or servers are required for printing. 12 There is no need for checking the status of the TM printer in advance. (Supported in firmware Ver.1.2 and later) ❏ Does not respond to a printer's function to automatically send its status (AutoStatusBack). Instead, capa-
...empty print command and checking the status of the TM printer based on the result of command transmission. (Supported in firmware Ver.1.2 and later) ❏ To change the printer settings, utility programs dedicated to each printer or other TM printer via TM-i. ❏ Provides ePOS-Print API and ePOS-.... ❏ No PCs or servers are required for printing. 12 There is no need for checking the status of the TM printer in advance. (Supported in firmware Ver.1.2 and later) ❏ Does not respond to a printer's function to automatically send its status (AutoStatusBack). Instead, capa-
ePOS-Print API Users Manual
Page 24
Print them as two-tone images. (in firmware Ver.1.2 and later) ❏ If printing was cancelled, perform the following settings to clear the data left in the printer. (in Ver.3.0 and later) ... the print result. (in firmware Ver.1.2 and later) ❏ The scan quality of barcodes/two-dimensional symbols printed as multiple-tone raster images cannot be performed from security-protected Web pages (HTTPS). ❏ When multiple tones are set for the receive buffer full. Disable the command execution (offline). (TM-P60II, TM-P80) 24
Print them as two-tone images. (in firmware Ver.1.2 and later) ❏ If printing was cancelled, perform the following settings to clear the data left in the printer. (in Ver.3.0 and later) ... the print result. (in firmware Ver.1.2 and later) ❏ The scan quality of barcodes/two-dimensional symbols printed as multiple-tone raster images cannot be performed from security-protected Web pages (HTTPS). ❏ When multiple tones are set for the receive buffer full. Disable the command execution (offline). (TM-P60II, TM-P80) 24
ePOS-Print API Users Manual
Page 26
....168.192.168".) TM Printer: 192.168.192.168 ) Device ID of the target printer (Default : local_printer) Print timeout( milliseconds ) (Default : 60000) Prints coupons in gray scale (Coupon) (in firmware Ver.1.2 and later) (...Default : No) Prints labels with specified layout (Label) (in firmware Ver.3.0 and later) (Default: No) 26
....168.192.168".) TM Printer: 192.168.192.168 ) Device ID of the target printer (Default : local_printer) Print timeout( milliseconds ) (Default : 60000) Prints coupons in gray scale (Coupon) (in firmware Ver.1.2 and later) (...Default : No) Prints labels with specified layout (Label) (in firmware Ver.3.0 and later) (Default: No) 26
ePOS-Print API Users Manual
Page 35
...: 1 Connect the printer to the network and turn the power ON. 2 Start the Web browser and type the URL of the TM‐i is a DHCP‐assigned address number. (Firmware Ver.3.0 or later) If an address fails to be assigned via DHCP, the value becomes ʺ192.168.192.168ʺ. 3 TMNet... WebConfig starts. Select as IP address for the TM-i and click [Submit]. 5 Print the status sheet using the TM-i to check that the IP...
...: 1 Connect the printer to the network and turn the power ON. 2 Start the Web browser and type the URL of the TM‐i is a DHCP‐assigned address number. (Firmware Ver.3.0 or later) If an address fails to be assigned via DHCP, the value becomes ʺ192.168.192.168ʺ. 3 TMNet... WebConfig starts. Select as IP address for the TM-i and click [Submit]. 5 Print the status sheet using the TM-i to check that the IP...
ePOS-Print API Users Manual
Page 42
... performed based on the procedure, refer to Reception of Status Event (p. 51). (in firmware Ver.1.2 and later) • A status event helps check the status of the TM printer to be used for printing and then starts printing operation. (in firmware Ver.1.2 and later) 42 Print Document Creation (p.44) ❏ To create a text print... document (p.47) 3. For details on the following work flow: 1. Transmission of ePOS-Print API (p.43) 2. Reception of Print Result (p.49) • ePOS‐Print supported TM printer checks the status of the...
... performed based on the procedure, refer to Reception of Status Event (p. 51). (in firmware Ver.1.2 and later) • A status event helps check the status of the TM printer to be used for printing and then starts printing operation. (in firmware Ver.1.2 and later) 42 Print Document Creation (p.44) ❏ To create a text print... document (p.47) 3. For details on the following work flow: 1. Transmission of ePOS-Print API (p.43) 2. Reception of Print Result (p.49) • ePOS‐Print supported TM printer checks the status of the...
ePOS-Print API Users Manual
Page 51
... 3 Programming Guide Reception of Status Event The status event notification function is used to check the printer status without printing. (in firmware Ver.1.2 and later) Refer to the following: //Set the end point address var address = 'http://192.168.192.168/cgi...-bin/epos/service.cgi?devid=local_printer &timeout=10000'; //Create an ePOS-Print Builder object var builder = new epson.ePOSBuilder(address); //Set an event callback function (cover open) epos.oncoveropen = function () { alert('coveropen'); }; //Set an event callback function (paper near end...
... 3 Programming Guide Reception of Status Event The status event notification function is used to check the printer status without printing. (in firmware Ver.1.2 and later) Refer to the following: //Set the end point address var address = 'http://192.168.192.168/cgi...-bin/epos/service.cgi?devid=local_printer &timeout=10000'; //Create an ePOS-Print Builder object var builder = new epson.ePOSBuilder(address); //Set an event callback function (cover open) epos.oncoveropen = function () { alert('coveropen'); }; //Set an event callback function (paper near end...
ePOS-Print API Users Manual
Page 58
Reception of Status Event The status event notification function is used to check the printer status without printing. (in firmware Ver.1.2 and later) Refer to the following. //Set the end point address var address = 'http://192.168.192.168/cgi-bin/epos/service....cgi?devid=local_printer &timeout=10000'; //Create an ePOS-Print Canvas API object var epos = new epson.CanvasPrint(address); //Set an event callback function (cover open) epos.oncoveropen = function () { alert('coveropen'); }; //Set an event callback function (paper near end) epos....
Reception of Status Event The status event notification function is used to check the printer status without printing. (in firmware Ver.1.2 and later) Refer to the following. //Set the end point address var address = 'http://192.168.192.168/cgi-bin/epos/service....cgi?devid=local_printer &timeout=10000'; //Create an ePOS-Print Canvas API object var epos = new epson.CanvasPrint(address); //Set an event callback function (cover open) epos.oncoveropen = function () { alert('coveropen'); }; //Set an event callback function (paper near end) epos....
ePOS-Print API Users Manual
Page 59
...font setting. ● ● 73 Text Adds a tag for the text rotation set- List of text. - ● 81 (in firmware Ver.3.0 and later) 59 Chapter 4 ePOS-Print API ePOS-Print API This chapter describes the ePOS-Print API. Adds a tag for specifying ...of API functions ePOS-Print provides the following objects: ❏ ePOS-Print Builder (window.epson.ePOSBuilder) Object (p. 59) ❏ ePOS-Print (window.epson.ePOSPrint) Object (p. 63) window.epson.ePOSBuilder Components Element API Description Standard mode page mode Page Constructor ePOS Builder Initializes an ePOS...
...font setting. ● ● 73 Text Adds a tag for the text rotation set- List of text. - ● 81 (in firmware Ver.3.0 and later) 59 Chapter 4 ePOS-Print API ePOS-Print API This chapter describes the ePOS-Print API. Adds a tag for specifying ...of API functions ePOS-Print provides the following objects: ❏ ePOS-Print Builder (window.epson.ePOSBuilder) Object (p. 59) ❏ ePOS-Print (window.epson.ePOSPrint) Object (p. 63) window.epson.ePOSBuilder Components Element API Description Standard mode page mode Page Constructor ePOS Builder Initializes an ePOS...
ePOS-Print API Users Manual
Page 61
.... ated by on the buzzer. ● Adds the paper layout setup to command buffer ● (in firmware Ver.2.2 and later) Adds a tag for recovering from an ● error. (in firmware Ver.3.0 and later) Adds a tag for resetting the printer. (in firmware Ver.3.0 and later) ● Adds commands to the command ● buffer.
.... ated by on the buzzer. ● Adds the paper layout setup to command buffer ● (in firmware Ver.2.2 and later) Adds a tag for recovering from an ● error. (in firmware Ver.3.0 and later) Adds a tag for resetting the printer. (in firmware Ver.3.0 and later) ● Adds commands to the command ● buffer.
ePOS-Print API Users Manual
Page 62
... to Printer specifications (p.209). 62 Set values with the following in mind: ❏ Unit Specify numbers in firmware Ver.1.2 and later) bar code type HRI position two-dimensional code type error correction level line style page mode print direction...PATTERN_* FEED_* LAYOUT_* Description Page Raster image halftone processing method 134 (in firmware Ver.1.2 and later) Raster image brightness correction value 135 (in firmware Ver.1.2 and later) Forced transmission mode 136 (in firmware Ver.3.0 and later) Message buffer 137 font alignment color specification Halftone type ...
... to Printer specifications (p.209). 62 Set values with the following in mind: ❏ Unit Specify numbers in firmware Ver.1.2 and later) bar code type HRI position two-dimensional code type error correction level line style page mode print direction...PATTERN_* FEED_* LAYOUT_* Description Page Raster image halftone processing method 134 (in firmware Ver.1.2 and later) Raster image brightness correction value 135 (in firmware Ver.1.2 and later) Forced transmission mode 136 (in firmware Ver.3.0 and later) Message buffer 137 font alignment color specification Halftone type ...
ePOS-Print API Users Manual
Page 63
... window.epson.ePOSPrint Components Element API Constructor ePOS-Print Method send open Property close address enabled Event interval status battery timeout onreceive onerror onstatuschange onbatterystatuschange ononline onoffline onpoweroff oncoverok oncoveropen onpaperok onpapernearend onpaperend Description Page Initializes an ePOS-Print object 138 Sends a message 139 Enables status event operation 140 (in firmware Ver...
... window.epson.ePOSPrint Components Element API Constructor ePOS-Print Method send open Property close address enabled Event interval status battery timeout onreceive onerror onstatuschange onbatterystatuschange ononline onoffline onpoweroff oncoverok oncoveropen onpaperok onpapernearend onpaperend Description Page Initializes an ePOS-Print object 138 Sends a message 139 Enables status event operation 140 (in firmware Ver...
ePOS-Print API Users Manual
Page 64
Element API Event ondrawerclosed ondraweropen onbatteryok onbatterylow Constant ASB_* Description Drawer close event (in firmware Ver.1.2 and later) Drawer open event (in firmware Ver.1.2 and later) Battery OK event (in firmware Ver.2.2 and later) Battery low event (in firmware Ver.2.2 and later) Status Page 157 158 158 159 64
Element API Event ondrawerclosed ondraweropen onbatteryok onbatterylow Constant ASB_* Description Drawer close event (in firmware Ver.1.2 and later) Drawer open event (in firmware Ver.1.2 and later) Battery OK event (in firmware Ver.2.2 and later) Battery low event (in firmware Ver.2.2 and later) Status Page 157 158 158 159 64
ePOS-Print API Users Manual
Page 70
... Chinese(in a printer cannot be printed. Syntax addTextLang(lang); addTextLang method Adds the language setting to China.) Traditional Chinese(in firmware Ver.2.2 and later) Traditional Chinese English(ANK) Characters not installed in firmware Ver.2.2 and later) (International character set changes to China.) Simplified Chinese (International character set changes to the...
... Chinese(in a printer cannot be printed. Syntax addTextLang(lang); addTextLang method Adds the language setting to China.) Traditional Chinese(in firmware Ver.2.2 and later) Traditional Chinese English(ANK) Characters not installed in firmware Ver.2.2 and later) (International character set changes to China.) Simplified Chinese (International character set changes to the...
ePOS-Print API Users Manual
Page 81
Chapter 4 ePOS-Print API addTextVPosition method Adds the vertical print start position (in firmware Ver.3.0 and later) Use this API function by inserting it between addPageBegin to 65535. Return value Return value ePOS-Print Builder Object Object type ePOS ...
Chapter 4 ePOS-Print API addTextVPosition method Adds the vertical print start position (in firmware Ver.3.0 and later) Use this API function by inserting it between addPageBegin to 65535. Return value Return value ePOS-Print Builder Object Object type ePOS ...
ePOS-Print API Users Manual
Page 84
... ePOS Builder Exception Parameter " ... " is invalid Exception Object type Error 84 addFeedPosition method Adds label/black mark paper feeding to the command buffer. (Supported in firmware Ver.2.1 and later) • Control of the next label. Feeds to the top of the current label. Syntax addFeedPosition(pos);
... ePOS Builder Exception Parameter " ... " is invalid Exception Object type Error 84 addFeedPosition method Adds label/black mark paper feeding to the command buffer. (Supported in firmware Ver.2.1 and later) • Control of the next label. Feeds to the top of the current label. Syntax addFeedPosition(pos);
ePOS-Print API Users Manual
Page 88
...Example Exception Object type ePOS Builder Object type Error To print an image 300 dots wide and 300 dots high in firmware Ver.1.2 and later) Setting Description MODE_MONO MODE_GRAY16 undefined (When not specified) Monochrome (two-tone) Gray scale (16-tone...) Monochrome (two-tone) Return value Return value ePOS-Print Builder Object Exception Parameter " ... var builder = new epson.ePOSBuilder(); builder.addPagePosition(0, 299); builder.addPageEnd(); 88 builder.addImage(context, 0, 0, 300, 300); mode : ( Optional parameter, Object ...
...Example Exception Object type ePOS Builder Object type Error To print an image 300 dots wide and 300 dots high in firmware Ver.1.2 and later) Setting Description MODE_MONO MODE_GRAY16 undefined (When not specified) Monochrome (two-tone) Gray scale (16-tone...) Monochrome (two-tone) Return value Return value ePOS-Print Builder Object Exception Parameter " ... var builder = new epson.ePOSBuilder(); builder.addPagePosition(0, 299); builder.addPageEnd(); 88 builder.addImage(context, 0, 0, 300, 300); mode : ( Optional parameter, Object ...
ePOS-Print API Users Manual
Page 97
... Expanded Stacked SYMBOL_AZTECCODE_FULLRANGE Aztec Code Full-Range mode (in firmware Ver.2.2 and later) SYMBOL_AZTECCODE_COMPACT SYMBOL_DATAMATRIX_SQUARE Aztec Code Compact mode (in firmware Ver.2.2 and later) DataMatrix ECC200 square 4 (in firmware Ver.2.2 and later) SYMBOL_DATAMATRIX_RECTANGLE_8 DataMatrix ECC200 rectangle, 8 lines (in firmware Ver.2.2 and later) SYMBOL_DATAMATRIX_RECTANGLE_12 DataMatrix ECC200 rectangle, 12 lines...
... Expanded Stacked SYMBOL_AZTECCODE_FULLRANGE Aztec Code Full-Range mode (in firmware Ver.2.2 and later) SYMBOL_AZTECCODE_COMPACT SYMBOL_DATAMATRIX_SQUARE Aztec Code Compact mode (in firmware Ver.2.2 and later) DataMatrix ECC200 square 4 (in firmware Ver.2.2 and later) SYMBOL_DATAMATRIX_RECTANGLE_8 DataMatrix ECC200 rectangle, 8 lines (in firmware Ver.2.2 and later) SYMBOL_DATAMATRIX_RECTANGLE_12 DataMatrix ECC200 rectangle, 12 lines...
ePOS-Print API Users Manual
Page 98
... L QR Code error correction level M QR Code error correction level Q QR Code error correction level H Default level Aztec Code error correction level (Default: 23) (in firmware Ver.2.2 and later) • Select the level according to 16 3 Default value 98 level : width : ( Optional parameter, Object type : String) Specifies the...
... L QR Code error correction level M QR Code error correction level Q QR Code error correction level H Default level Aztec Code error correction level (Default: 23) (in firmware Ver.2.2 and later) • Select the level according to 16 3 Default value 98 level : width : ( Optional parameter, Object type : String) Specifies the...
ePOS-Print API Users Manual
Page 123
...) PATERN_2 PATERN_3 PATERN_4 Pattern 2 (in firmware Ver.2.2 and later) Pattern 3 (in firmware Ver.2.2 and later) Pattern 4 (in firmware Ver.2.2 and later) 4 PATERN_5 Pattern 5 (in firmware Ver.2.2 and later) PATERN_6 Pattern 6 (in firmware Ver.2.2 and later) PATERN_7 Pattern 7 (in firmware Ver.2.2 and later) PATERN_8 Pattern 8 (in firmware Ver.2.2 and later) PATERN_9 Pattern 9 (in firmware Ver.2.2 and later) PATERN_10 Pattern...
...) PATERN_2 PATERN_3 PATERN_4 Pattern 2 (in firmware Ver.2.2 and later) Pattern 3 (in firmware Ver.2.2 and later) Pattern 4 (in firmware Ver.2.2 and later) 4 PATERN_5 Pattern 5 (in firmware Ver.2.2 and later) PATERN_6 Pattern 6 (in firmware Ver.2.2 and later) PATERN_7 Pattern 7 (in firmware Ver.2.2 and later) PATERN_8 Pattern 8 (in firmware Ver.2.2 and later) PATERN_9 Pattern 9 (in firmware Ver.2.2 and later) PATERN_10 Pattern...
ePOS-Print API Users Manual
Page 130
Syntax addRecovery(); " is invalid Exception Object type Error Example Recovers from errors that can be recovered from and clears the buffer. Return value Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... addRecovery method Adds the recovery from and clears the buffer: 130 The printer recovers from errors that can be recovered from errors to the command buffer. (in firmware Ver.3.0 and later) Enable forced transmission mode to use this API.
Syntax addRecovery(); " is invalid Exception Object type Error Example Recovers from errors that can be recovered from and clears the buffer. Return value Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... addRecovery method Adds the recovery from and clears the buffer: 130 The printer recovers from errors that can be recovered from errors to the command buffer. (in firmware Ver.3.0 and later) Enable forced transmission mode to use this API.