Addpagearea - Epson TM-T88V User Manual

Epos-print sdk for android
Hide thumbs Also See for TM-T88V:
Table of Contents

Advertisement

addPageArea

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
Syntax
public void addPageArea(int x, int y, int width
, int height) throws EposException
Parameter
 x :
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.
 y :
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.
 width :
Specifies the width of the print area (in dots). Specifies an integer from 0 to 65535.
 height :
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.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Error status
ERR_PARAM
ERR_MEMORY
ERR_FAILURE
72
addPageBegin (p.70)
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
and
addPageEnd
Description
(p.71).

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm-t70Tm-p60Tm-u220

Table of Contents