Epson TM-T20II-i Server Direct Print Users Manual for TM-i firmware ver.4.1 - Page 29

Print Data Configuration, Print XML reference

Page 29 highlights

Chapter 3 Request and Response Print Data Configuration Print data consists of the tag and the tag. Describe the print data in the ePOS-Print format and specify the data to the tag. For ePOSPrint XML reference, see Chapter 4 "ePOS-Print XML Reference" in "ePOS-Print XML User's Manual". HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: xxx tag local_printer 10000 tag DELIVERY TICKET 3 Order 0001 Time Mar 19 2013 13:53:15 Seat A-3 Alt Beer $6.00 x 2 $12.00 TOTAL $12.00 0001 29

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48

29
Chapter 3
Request and Response
3
Print Data Configuration
Print data consists of the <Parameter> tag and the <ePOSPrint> tag.
Describe the print data in the ePOS-Print format and specify the data to the <epos-print> tag. For ePOS-
Print XML reference, see Chapter 4 "ePOS-Print XML Reference" in "ePOS-Print XML User's Manual".
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: xxx
<?xml version="1.0" encoding="utf-8" ?>
<PrintRequestInfo>
<ePOSPrint>
<Parameter>
<devid>local_printer</devid>
<timeout>10000</timeout>
</Parameter>
<PrintData>
<text lang="en" />
<text smooth="true" />
<text align="center" />
<text font="font_b" />
<text width="2" height="2" />
<text reverse="false" ul="false" em="true" color="color_1" />
<text>DELIVERY TICKET</text>
<feed unit="12" />
<text></text>
<text align="left" />
<text font="font_a" />
<text width="1" height="1" />
<text reverse="false" ul="false" em="false" color="color_1" />
<text>Order 0001</text>
<text width="1" height="1" />
<text reverse="false" ul="false" em="false" color="color_1" />
<text>Time Mar 19 2013 13:53:15</text>
<text>Seat A-3</text>
<text></text>
<text width="1" height="1" />
<text reverse="false" ul="false" em="false" color="color_1" />
<text>Alt Beer</text>
<text>$6.00 x 2</text>
<text x="384" />
<text>$12.00</text>
<text></text>
<text reverse="false" ul="false" em="true" />
<text width="2" height="1" />
<text>TOTAL</text>
<text x="264" />
<text>$12.00</text>
<text reverse="false" ul="false" em="false" />
<text width="1" height="1" />
<feed unit="12" />
<text align="center" />
<barcode type="code39" hri="none" font="font_a" width="2" height="60">0001
</barcode>
<feed line="3" />
<cut type="feed" />
</epos-print>
</PrintData>
<ePOSPrint>
<PrintRequestInfo>
<Parameter>tag
<ePOSPrint>tag