ePOS-Print API Users Manual
Page 9
...Printer specifications ...209 TM-T88V-i ...209 TM-T88V ...211 TM-T88IV ...213 TM-T70-i...215 TM-T70-i (Multi-language model) ...217 TM-T70...219 TM-T70 (Multi-language model) ...221 TM-L90-i ...223 TM-L90 ...225 TM-T90...227 TM-P60II ...229 TM-P60II with Peeler ...231 TM-P80 ...233 TM-T20...235 TM-U220...237 ■...graph.html 245 Rendering Handwritten Images (canvas-print-hand.html 247 Rendering Barcode (canvas-print-barcode.html 249 Rendering Label (canvas-print-label.html 251 ■ Windows Store Apps ...253 Sample Program Screen ...253 Environment of Sample Program ...255 Sample Program ...
...Printer specifications ...209 TM-T88V-i ...209 TM-T88V ...211 TM-T88IV ...213 TM-T70-i...215 TM-T70-i (Multi-language model) ...217 TM-T70...219 TM-T70 (Multi-language model) ...221 TM-L90-i ...223 TM-L90 ...225 TM-T90...227 TM-P60II ...229 TM-P60II with Peeler ...231 TM-P80 ...233 TM-T20...235 TM-U220...237 ■...graph.html 245 Rendering Handwritten Images (canvas-print-hand.html 247 Rendering Barcode (canvas-print-barcode.html 249 Rendering Label (canvas-print-label.html 251 ■ Windows Store Apps ...253 Sample Program Screen ...253 Environment of Sample Program ...255 Sample Program ...
ePOS-Print API Users Manual
Page 16
...to Appendix, Printer Specifications. For details, refer to "Printer specifications" on page 209.) ❏ Ruled line setting ❏ Control of label paper/black mark paper ❏ Drawer kick function ❏ Buzzer function ❏ ESC/POS command transmission ❏ Response document acquisition (... Reset Printing functions of ePOS-Print Canvas API ❏ Printing of images (raster images) rendered in HTML5 Canvas ❏ Control of label paper/black mark paper ❏ Feed cut ❏ Response document acquisition (print result/printer status/system error status) ❏ Paper...
...to Appendix, Printer Specifications. For details, refer to "Printer specifications" on page 209.) ❏ Ruled line setting ❏ Control of label paper/black mark paper ❏ Drawer kick function ❏ Buzzer function ❏ ESC/POS command transmission ❏ Response document acquisition (... Reset Printing functions of ePOS-Print Canvas API ❏ Printing of images (raster images) rendered in HTML5 Canvas ❏ Control of label paper/black mark paper ❏ Feed cut ❏ Response document acquisition (print result/printer status/system error status) ❏ Paper...
ePOS-Print API Users Manual
Page 21
... API User's Manual (This Document) ❏ ePOS-Print XML User's Manual ❏ TM-T88V-i Technical Reference Guide ❏ TM-T70-i Technical Reference Guide ❏ TM-L90-i Technical Reference Guide ❏ TM-P60II Technical Reference Guide ❏ TM-P80 Technical Reference Guide SampleProgram ePOS-Print_API_UM_E_Sample.zip The following are included: ❏ epos-print... canvas/canvas-print-hand.html(Rendering handwritten images) canvas/canvas-print-barcode.html(Rendering barcode) canvas/canvas-print-label.html(Rendering label) Chapter 1 Overview 1 21
... API User's Manual (This Document) ❏ ePOS-Print XML User's Manual ❏ TM-T88V-i Technical Reference Guide ❏ TM-T70-i Technical Reference Guide ❏ TM-L90-i Technical Reference Guide ❏ TM-P60II Technical Reference Guide ❏ TM-P80 Technical Reference Guide SampleProgram ePOS-Print_API_UM_E_Sample.zip The following are included: ❏ epos-print... canvas/canvas-print-hand.html(Rendering handwritten images) canvas/canvas-print-barcode.html(Rendering barcode) canvas/canvas-print-label.html(Rendering label) Chapter 1 Overview 1 21
ePOS-Print API Users Manual
Page 25
... are made based on a system configuration using a Web server. • Descriptions are as follows: 2 1 2 3 4 1 Queue Ticket Item 2 Coupon 3 Label Description Prints queue ticket numbers. Chapter 2 Sample Program Sample Program This chapter describes how to use the sample program. • In this chapter, descriptions are...different environment, interpret the descriptions accordingly. This is a Web server configured by using IIS (Microsoft Internet Information Services). Prints labels. If your Web server is used in this chapter is a sample program using the ePOS-Print Canvas API.
... are made based on a system configuration using a Web server. • Descriptions are as follows: 2 1 2 3 4 1 Queue Ticket Item 2 Coupon 3 Label Description Prints queue ticket numbers. Chapter 2 Sample Program Sample Program This chapter describes how to use the sample program. • In this chapter, descriptions are...different environment, interpret the descriptions accordingly. This is a Web server configured by using IIS (Microsoft Internet Information Services). Prints labels. If your Web server is used in this chapter is a sample program using the ePOS-Print Canvas API.
ePOS-Print API Users Manual
Page 26
... (If an address fails to be assigned via DHCP, the value becomes "192.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
... (If an address fails to be assigned via DHCP, the value becomes "192.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 27
Print Image The sample program prints the following: Your Number (ePOS-Print API) Your Number: Chapter 2 Sample Program Coupon (ePOS-Print Canvas API) 2 Label* (ePOS-Print API) Name Item A Color R e d Code *2012001* *:Die cut label: mount width 58mm or above Label size: width 54 mm x height 25.4 mm or above 27
Print Image The sample program prints the following: Your Number (ePOS-Print API) Your Number: Chapter 2 Sample Program Coupon (ePOS-Print Canvas API) 2 Label* (ePOS-Print API) Name Item A Color R e d Code *2012001* *:Die cut label: mount width 58mm or above Label size: width 54 mm x height 25.4 mm or above 27
ePOS-Print API Users Manual
Page 30
Prints (ePOS-Print Object) Action on the sample program Action on the customer 30 Creates print data (ePOS-Print Builder Object) 5. Open the sample program Web page 2. Label issuance (ePOS-Print API) 1. Click "Label" 4. Settings ❏ Settings of IP address of ePOS-Print supported TM printer ❏ Device ID of the printer to be controlled ❏ Print timeout time ❏ Settings of with or without layout specification in label printing of TM-P60II 3.
Prints (ePOS-Print Object) Action on the sample program Action on the customer 30 Creates print data (ePOS-Print Builder Object) 5. Open the sample program Web page 2. Label issuance (ePOS-Print API) 1. Click "Label" 4. Settings ❏ Settings of IP address of ePOS-Print supported TM printer ❏ Device ID of the printer to be controlled ❏ Print timeout time ❏ Settings of with or without layout specification in label printing of TM-P60II 3.
ePOS-Print API Users Manual
Page 40
... Print timeout (millisecond) Print in grayscale (Coupon) (Only for supported models) Set the paper layout (Label) (Only for TM-P60II) Description Specifies the IP address of the ePOS-Print supported TM printer. (Default value: TM-i: DHCP (If an address fails to be assigned via DHCP, the value becomes "192.168...
... Print timeout (millisecond) Print in grayscale (Coupon) (Only for supported models) Set the paper layout (Label) (Only for TM-P60II) Description Specifies the IP address of the ePOS-Print supported TM printer. (Default value: TM-i: DHCP (If an address fails to be assigned via DHCP, the value becomes "192.168...
ePOS-Print API Users Manual
Page 60
... for switching to page mode. ● - 107 addPageEnd Adds a tag for finishing page mode. ● - 108 Adds a tag for drawing a rectangle - Feed Adds control of label paper/black addFeedPosition ● mark paper to command buffer ● 83 - 84 addFeed Adds a line feed to the command ● buffer. - 86 Graphic addImage addLogo...
... for switching to page mode. ● - 107 addPageEnd Adds a tag for finishing page mode. ● - 108 Adds a tag for drawing a rectangle - Feed Adds control of label paper/black addFeedPosition ● mark paper to command buffer ● 83 - 84 addFeed Adds a line feed to the command ● buffer. - 86 Graphic addImage addLogo...
ePOS-Print API Users Manual
Page 62
... line style page mode print direction paper cut type drawer kick-out connector drawer kick-out pulse length buzzer sound pattern Paper feed position of label paper/black mark paper Type of images and barcodes, etc.) ❏ Range Depending on the printer. For details, refer to Printer specifications (p.209). 62...
... line style page mode print direction paper cut type drawer kick-out connector drawer kick-out pulse length buzzer sound pattern Paper feed position of label paper/black mark paper Type of images and barcodes, etc.) ❏ Range Depending on the printer. For details, refer to Printer specifications (p.209). 62...
ePOS-Print API Users Manual
Page 84
...page mode, addFeedPosition method specification cannot be used. Feeds to the peeling position. Feeds to the top of the current label. " is invalid Exception Object type Error 84 Setting FEED_PEELING FEED_CUTTING FEED_CURRENT_TOF FEED_NEXT_TOF Description Feeds to the cutting position. Return value... Object Object type ePOS Builder Exception Parameter " ... Feeds to the top of label paper/black mark paper must be done in firmware Ver.2.1 and later) • Control of the next label. Parameter pos : Return value ( Required parameter, Object type : String...
...page mode, addFeedPosition method specification cannot be used. Feeds to the peeling position. Feeds to the top of the current label. " is invalid Exception Object type Error 84 Setting FEED_PEELING FEED_CUTTING FEED_CURRENT_TOF FEED_NEXT_TOF Description Feeds to the cutting position. Return value... Object Object type ePOS Builder Exception Parameter " ... Feeds to the top of label paper/black mark paper must be done in firmware Ver.2.1 and later) • Control of the next label. Parameter pos : Return value ( Required parameter, Object type : String...
ePOS-Print API Users Manual
Page 85
Chapter 4 ePOS-Print API Example To print while peeling the label one by one To print labels consecutively To print tickets with black mark paper 4 85
Chapter 4 ePOS-Print API Example To print while peeling the label one by one To print labels consecutively To print tickets with black mark paper 4 85
ePOS-Print API Users Manual
Page 125
Specifies an integer from 290 to the top of next black mark Die-cut label (without black mark) Die-cut label (with black mark) Distance from the top of black mark to 600. * ( Optional parameter, Object type : Number, When not specified : 0) ... LAYOUT_LABEL LAYOUT_LABEL_BM Description Receipt (without black mark) Receipt (with black mark) Die-cut label (without black mark) 0 (Auto) Distance from the top of 284 to 1550 (Manual) * label to the top of next label Die-cut label (with black mark) Distance from the bottom of black mark to the command buffer....
Specifies an integer from 290 to the top of next black mark Die-cut label (without black mark) Die-cut label (with black mark) Distance from the top of black mark to 600. * ( Optional parameter, Object type : Number, When not specified : 0) ... LAYOUT_LABEL LAYOUT_LABEL_BM Description Receipt (without black mark) Receipt (with black mark) Die-cut label (without black mark) 0 (Auto) Distance from the top of 284 to 1550 (Manual) * label to the top of next label Die-cut label (with black mark) Distance from the bottom of black mark to the command buffer....
ePOS-Print API Users Manual
Page 126
...of black mark to the cutting position 126 Paper Type Receipt (without black mark) Receipt (with black mark) Die-cut label (without black mark) Die-cut label (with black mark) Valid value range Description 0 Setup not necessary -150 to 1500 * 0 to 1500 * -15...position Distance from the beginning of black mark. Paper Type Receipt (without black mark) Receipt (with black mark) Die-cut label (without black mark) Die-cut label (with black mark) Valid value range Description 0 Setup not necessary -290 to 50 * 0 to 50 * 0 to 50...
...of black mark to the cutting position 126 Paper Type Receipt (without black mark) Receipt (with black mark) Die-cut label (without black mark) Die-cut label (with black mark) Valid value range Description 0 Setup not necessary -150 to 1500 * 0 to 1500 * -15...position Distance from the beginning of black mark. Paper Type Receipt (without black mark) Receipt (with black mark) Die-cut label (without black mark) Die-cut label (with black mark) Valid value range Description 0 Setup not necessary -290 to 50 * 0 to 50 * 0 to 50...
ePOS-Print API Users Manual
Page 127
... depending on the printer model. Chapter 4 ePOS-Print API offset_label* : ( Optional parameter, Object type : Number, When not specified : 0) Specifies label bottom position (sd) per 0.1mm unit. Paper Type Receipt (without black mark) Receipt (with black mark) Die-cut... label (without black mark) Die-cut label (with black mark) Valid value range Description 0 0 Setup not necessary 0 0 to 15 * Distance from the top of black mark ...
... depending on the printer model. Chapter 4 ePOS-Print API offset_label* : ( Optional parameter, Object type : Number, When not specified : 0) Specifies label bottom position (sd) per 0.1mm unit. Paper Type Receipt (without black mark) Receipt (with black mark) Die-cut... label (without black mark) Die-cut label (with black mark) Valid value range Description 0 0 Setup not necessary 0 0 to 15 * Distance from the top of black mark ...
ePOS-Print API Users Manual
Page 128
Detailed description See below for the parameters that can be specified for those parameters. Mark sf sa sb se sc sd Parameter width height margin_top margin_bottom offset_cut offset_label sf Receipt Top position Cut sf sb sc sa Top position Label Cut sf Bottom edge of print area sb se sa sc sc sf Cut sb Top position Bottom edge of print area Standard eject se sa sd Bottom edge sc of paper, and the positions for each type of label 128
Detailed description See below for the parameters that can be specified for those parameters. Mark sf sa sb se sc sd Parameter width height margin_top margin_bottom offset_cut offset_label sf Receipt Top position Cut sf sb sc sa Top position Label Cut sf Bottom edge of print area sb se sa sc sc sf Cut sb Top position Bottom edge of print area Standard eject se sa sd Bottom edge sc of paper, and the positions for each type of label 128
ePOS-Print API Users Manual
Page 129
Chapter 4 ePOS-Print API Example To set 58mm receipt (without black mark): To set 58mm receipt (with black mark): To set 58mm die-cut label (without black mark): To set 58mm die-cut label (with black mark): 4 129
Chapter 4 ePOS-Print API Example To set 58mm receipt (without black mark): To set 58mm receipt (with black mark): To set 58mm die-cut label (without black mark): To set 58mm die-cut label (with black mark): 4 129
ePOS-Print API Users Manual
Page 149
...ASB_COVER_OPEN ASB_PAPER_FEED ASB_WAIT_ON_LINE ASB_PANEL_SWITCH ASB_MECHANICAL_ERR ASB_AUTOCUTTER_ERR ASB_UNRECOVER_ERR ASB_AUTORECOVER_ERR ASB_RECEIPT_NEAR_END ASB_RECEIPT_END ASB_BUZZER ASB_WAIT_REMOVE_LABEL ASB_NO_LABEL ASB_SPOOLER_IS_STOPPED Description No response from the TM printer Printing is successfully completed Status of the 3rd pin of the drawer kick-out connector = "H" ...sensor A buzzer is on (only for applicable devices) Waiting for label to be removed (only for applicable devices) No paper in label peeling sensor (only for applicable devices) The spooler has stopped (Not used...
...ASB_COVER_OPEN ASB_PAPER_FEED ASB_WAIT_ON_LINE ASB_PANEL_SWITCH ASB_MECHANICAL_ERR ASB_AUTOCUTTER_ERR ASB_UNRECOVER_ERR ASB_AUTORECOVER_ERR ASB_RECEIPT_NEAR_END ASB_RECEIPT_END ASB_BUZZER ASB_WAIT_REMOVE_LABEL ASB_NO_LABEL ASB_SPOOLER_IS_STOPPED Description No response from the TM printer Printing is successfully completed Status of the 3rd pin of the drawer kick-out connector = "H" ...sensor A buzzer is on (only for applicable devices) Waiting for label to be removed (only for applicable devices) No paper in label peeling sensor (only for applicable devices) The spooler has stopped (Not used...
ePOS-Print API Users Manual
Page 162
... oncoverok oncoveropen onpaperok onpapernearend onpaperend ondrawerclosed ondraweropen Description Page Color mode (in firmware Ver.1.2 and later) 179 Position alignment 180 Printing color 181 Control of label paper/black mark paper 182 (in firmware Ver.2.1 and later) Type of papers (in firmware Ver.2.1 and later) 183 Paper layout (in firmware Ver.2.2 and...
... oncoverok oncoveropen onpaperok onpapernearend onpaperend ondrawerclosed ondraweropen Description Page Color mode (in firmware Ver.1.2 and later) 179 Position alignment 180 Printing color 181 Control of label paper/black mark paper 182 (in firmware Ver.2.1 and later) Type of papers (in firmware Ver.2.1 and later) 183 Paper layout (in firmware Ver.2.2 and...
ePOS-Print API Users Manual
Page 163
Element Constant API ASB_* HALFTONE_* MODE_* ALIGN_* COLOR_* FEED_* PAPER_* Chapter 5 ePOS-Print Canvas API Description Page Response document status Halftone type Color mode Position alignment Color specification Paper feed position of label paper/black mark paper Type of papers 5 163
Element Constant API ASB_* HALFTONE_* MODE_* ALIGN_* COLOR_* FEED_* PAPER_* Chapter 5 ePOS-Print Canvas API Description Page Response document status Halftone type Color mode Position alignment Color specification Paper feed position of label paper/black mark paper Type of papers 5 163