打印脚本示例

<?xml version="1.0" encoding="utf-8"?>
<model>
    <config>
        <chfont>N</chfont>
        <enfont>N</enfont>
        <align>L</align>
        <underline>FALSE</underline>
        <bold>FALSE</bold>
        <yspace>6</yspace>
    </config>

    <text chfont="S" enfont="S">小号字体文本abcABC</text>
    <text chfont="N" enfont="N">中号字体文本abcABC</text>
    <text chfont="L" enfont="L">大号字体文本abcABC</text>
    <text chfont="SN" enfont="SN">小宽中高字体文本abcABC</text>
    <text chfont="SL" enfont="SL">小宽大高字体文本abcABC</text>
    <text chfont="NL" enfont="NL">中宽大高字体文本abcABC</text>
    <text align="L">左对齐文本</text>
    <text align="C">居中对齐文本</text>
    <text align="R">右对齐文本</text>
    <text bold="TRUE">加粗文本</text>
    <text underline="TRUE">带下划线文本</text>
    <text bold="TRUE" underline="TRUE" chfont="N" enfont="N" align="L">加粗带下划线左对齐中号字体文本abcABC</text>
    <text yspace="50">行间距为50文本</text>
    <divider/>
    <text>以下走纸两行</text>
    <feedline>2</feedline>
    <divider align="C" size="10">*</divider>
    <image align="C" width="100" yspace="30">assets://print_logo.png</image>
    <qrcode align="C" width="200" level="2" yspace="30">12345</qrcode>
    <barcode align="C" width="2" height="100">12345</barcode>
    <feedline>2</feedline>
</model>

打印效果

results matching ""

    No results matching ""