|
-
-
ePOS-Print XML / ePOS-Device XML で罫線を印字するには次のようにおこないます。
直線および四角形を描画するための XML 文書のタグを使用できる機種は以下のものに限ります。
TM-m10 / TM-m30 / TM-P20 / TM-P60II / TM-P80 / TM-T90KP
この他の機種では使用できません。
また罫線描画用の hline, vline-begin, vline-end タグが使用できるのは TM-T90KP のみです。
ePOS-Print XML / ePOS-Device XML では
XML 文書のタグ hline, vline-begin, vline-end, line, rectangle を使用します。
次のコードは ePOS-Print XML / ePOS-Device XML で罫線を印字する場合の例です。
XML 文書のタグ hline, vline-begin, vline-end を使用します。
vline-begin, vline-end は指定した間に縦罫線を描画します。
ただし vline-end で指定する属性の値が vline-begin と異なる場合、その vline-end は無効になります。
<epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
<hline x1="0" x2="575" style="thin_double"/>
<text>Hello,	World! </text>
<text>Hello,	World! </text>
<vline-begin x="250" style="medium_double"/>
<text>Hello,	World! </text>
<text>Hello,	World! </text>
<vline-end x="250" style="medium_double"/>
<text>Hello,	World! </text>
<vline-begin x="300" style="medium_double"/>
<text>Hello,	World! </text>
<text>Hello,	World! </text>
<vline-end x="300" style="thin"/>
<barcode type="code39" hri="below" font="font_a" width="2" height="32">12345</barcode>
<cut type="feed"/>
</epos-print>
|
次のコードは ePOS-Print XML / ePOS-Device XML の line, rectangle タグで印字する場合の例です。
line, rectangle タグは page 要素の子要素として扱う必要があります。
なお line で指定する属性の値で斜線を印字するよう指定した場合は無効になり、印字部分は空白になります。
斜線を印字することはできません。
<epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
<page>
<area x="0" y="0" width="200" height="200"/>
<direction dir="left_to_right"/>
<position x="0" y="0"/>
<rectangle x1="0" y1="0" x2="100" y2="100" style="thin"/>
<line x1="0" y1="50" x2="100" y2="50" style="thick"/>
</page>
<cut type="feed"/>
</epos-print>
|
スマートレシートプリンター |
TM-L90-i,TM-T70-i,TM-T88V-i |
モバイルプリンター |
TM-P20,TM-P60II,TM-P80 |
PC一体型プリンター |
TM-T70II-DT,TM-T88V-DT |
TMシリーズ |
TM-T70II,TM-T88V,TM-T90 KP,TM-T90II,TM-m10,TM-m30 |
|