This function enables printing images, texts and barcodes (QR or EAN) using the Smartpos thermal receipt printer.
Parameter Configuration
This function requires you to complete register 390 with the printing configurations in JSON format. Refer to the Input Registers section to learn more.
Function ID
Register | Value |
---|---|
110 | 1 |
Input Registers
Register | Description | Mandatory | Value |
---|---|---|---|
390 | JSON with printing configurations | Yes | The JSON should be structured as in the following example: { "printLines": [{ "type": "IMAGE", "content": "#S{1001}", "graphicStyle": { "offset": 0 } }, { "type": "TEXT", "content": "COMERCIO:#S{2000}", "textStyle": { "align": "CENTER", "fontsize": "LARGE", "bold": true } }, { "type": "IMAGE", "content": "#S{1001}", "textStyle": { "width": 100, "height": 50, "offset": 0, "align": "CENTER" } }, { "type": "TEXT", "content": "COMERCIO:#S{2000}", "textStyle": { "align": "CENTER", "fontsize": "LARGE", "bold": true } }, { "type": "TEXT", "content": "FECHA:#K{NOW:D} HORA:#K{NOW:T}", "textStyle": { "align": "CENTER", "fontsize": "MEDIUM", "bold": false } }, { "type": "TEXT", "content": "DIRECCION:#S{2001}\n", "textStyle": { "align": "CENTER", "fontsize": "MEDIUM", "bold": false } }, { "type": "TEXT", "content": "AUTORIZACION|TARJ\n#S{6001}|****#S{6002}\nVALOR RETIRO #S{6003:G}\n\n\n\n", "textStyle": { "align": "CENTER", "fontsize": "SMALL", "bold": false } }, { "type": "QR", "content": "#S{1002}", "graphicStyle": { "height": 200, "offset": 0 } }, { "type": "BARCODE", "content": "#S{1005}", "graphicStyle": { "width": 400, "height": 80, "offset": 0, "align": "CENTER" } } ] } |
Output Registers
Register | Description | Value | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
112 | Call result |
|