Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 108
add Area method, add Area
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 108 highlights
addPageArea method Adds the print area in page mode to the command buffer. Specifies the print area in page mode (coordinates). After this API function, specify a print data API function such as the addText method. • Specify a print area to cover the content to be printed. If the print data extends beyond the print area, the print result will be such that the print data has been printed incompletely. • Use this API function by inserting it between addPageBegin (p. 106) and addPageEnd (p. 107). Syntax addPageArea(x, y, width, height); Parameter x: y: width : height : ( Required parameter, Object type : Number) Specifies the origin of the horizontal axis (in dots). Specifies an integer from 0 to 65535. 0 is the left end of the printer's printable area. ( Required parameter, Object type : Number) Specifies the origin of the vertical axis (in dots). Specifies an integer from 0 to 65535. 0 is the position in which no paper feed has been performed. ( Required parameter, Object type : Number) Specifies the width of the print area (in dots). Specifies an integer from 0 to 65535. ( Required parameter, Object type : Number) Specifies the height of the print area (in dots). Specifies an integer from 0 to 65535. Determine the width and height of the print area according to the print direction setting. Otherwise, the print data might not be printed completely. Return value Return value ePOS-Print Builder Object Exception Parameter " ... " is invalid Exception Object type ePOS Builder Object type Error 108