69
Chapter 4 ePOS-Print API
4
addText method
Adds the printing of text to the command buffer.
Syntax
addText
(data);
Parameter
data
:
(
Required
parameter,
Object
type
:
String)
Specify
a
character
string
to
be
printed.
For
the
horizontal
tab/line
feed,
use
the
following
escape
sequences:
Return valueReturn value
Exception
Example
• After
printing
text,
to
content
other
than
text,
execute
line
feed
or
paper
feed.
• In
page
mode,
characters
are
laid
out
in
the
current
position
with
the
reference
point
being
the
character
baseline
dot
(
String
Description
\t
Horizontal tab
(HT)
\n
Line feed
(LF)
\\
Carriage return
Return value
Object type
ePOS-Print Builder Object
ePOS Builder
Exception
Object type
Parameter " ... " is invalid
Error
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
function buildMessage() {
var builder = new epson.ePOSBuilder();
builder.addText('Hello,\t').addText('World\n');
}
//-->
</script>
To add character strings:
Содержание TM-T88V-i
Страница 10: ...10 ...
Страница 14: ...14 ePOS Print Canvas API Monochrome or Grayscale Monochrome ...
Страница 160: ...160 ...
Страница 216: ...216 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm ...
Страница 218: ...218 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm ...
Страница 222: ...222 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm 58mm ...
Страница 258: ...258 ...