[en] Print
[en] This function enables printing images, texts and barcodes (QR or EAN) using the Smartpos thermal receipt printer.
[en] Parameter Configuration
[en] This function requires you to complete register 390 with the printing configurations in JSON format. Refer to the Input Registers section to learn more.
[en] Function ID
[en] Register | [en] Value |
---|---|
110 | 1 |
[en] Input Registers
[en] Register | [en] Description | [en] Mandatory | [en] Value |
---|---|---|---|
390 | [en] JSON with printing configurations | [en] Yes | [en] 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" } } ] } |
[en] Output Registers
[en] Register | [en] Description | [en] Value | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
112 | [en] Call result |
|