EasyManua.ls Logo

Epson TM T88V - Page 31

Epson TM T88V
122 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
31
Chapter 3 Programming Guide
3
To create a page mode print document
The page mode starts by storing addPageBegin (p.70) of the Builder class into a command buffer. Store the
print area (addPageArea (p.72)) and the print start position (addPagePosition (p.76)) in command buffers.
Specify the print start position according to the print data. Then, store APIs in command buffers and create
print data. For the page mode end, store addPageEnd (p.71) in a command buffer. Use the programming
example below for your reference.
try {
//Initialize a Builder class instance
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
//Create a print document
//<The page mode starts>
builder.addPageBegin();
builder.addPageArea(100, 50, 200, 100);
builder.addPagePosition(0, 42);
//<Configure the print character settings>
builder.addTextLang(Builder.LANG_EN);
builder.addTextSmooth(Builder.TRUE);
builder.addTextFont(Builder.FONT_A);
builder.addTextSize(4, 4);
builder.addTextStyle(Builder.FALSE, Builder.FALSE, Builder.TRUE, Builder.PARAM_UNSPEC
//<Specify the print data>
builder.addText("Hello,\t");
builder.addText("World!\n");
//<The page mode ends>
builder.addPageEnd();
builder.addCut(Builder.CUT_FEED);
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}
For the string "Hello, World!", to create a print document based on the following settings:
Page mode print area (in dots):
Origin of horizontal axis: 100, origin of vertical axis: 50, width: 200, height: 100
Page mode print positions (in dots):
Horizontal print position: 0, vertical print position: 42
Font: FontA
Scale: x 2 (horizontal) and x 2 (vertical)
Style: Bold

Table of Contents

Other manuals for Epson TM T88V

Related product manuals