Having this error message when trying to print

Hello! I am using sambapos5 with an epson tm u220b and when im trying to print a ticket i get this error.
Can somebody tell me what to do?

I would aprecciate any kind of help!

Maybe show your template :slight_smile:

And show your SambaPOS Printer config and Print Job as well as the Template.

The template is :

[LAYOUT]
-- General layout
<C10>Control de mesa
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C10>Gracias por su visita!
Indique al mozo si el control es satisfactorio p/la correcta emisión
del ticket o factura

[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}

[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}

[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}

[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

Template:

[LAYOUT]
-- General layout
Control de mesa
Date:{TICKET DATE}
Time:{TIME}
{ENTITIES}
Ticket No:{TICKET NO}
-
{ORDERS}
=

{DISCOUNTS}
[Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
Total:|{TICKET TOTAL}
{PAYMENTS}

=
Gracias por su visita!
Indique al mozo si el control es satisfactorio p/la correcta emisión
del ticket o factura

[DISCOUNTS]
{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[SERVICES]
{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]
{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]
-- Default format for orders
- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}

[ORDERS:Gift]
-- Format for gifted orders
- {QUANTITY} {NAME}|GIFT
{ORDER TAGS}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
* {ORDER TAG NAME} | {ORDER TAG PRICE}

[ENTITIES:Table]
-- Table entity format
Table: {ENTITY NAME}

[ENTITIES:Customer]
-- Customer entity format
Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

PRINTER SETTING:

PRINTER JOB:

THANKS!!!

You need to select the template code and click the</> button on the post toolbar else the forum strips some of the code…

Sorry! I will post it correctly now! Thank you very much!

[LAYOUT]
-- General layout
<C10>Control de mesa
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C10>Gracias por su visita!
Indique al mozo si el control es satisfactorio p/la correcta emisión
del ticket o factura

[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}

[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}

[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}

[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

Ok so are you trying to print to an actual printer or are you trying to save it to a file of some format? That printer you have selected says Generic/Text Only… that is not a valid printer in windows… what exactly is that?

1 Like

The printer is set up in generic text only, i can print with any other program in the POS printer, te problem is the error that i get when i close and order, thats when a ticket should be printed but instead im having that program error.

That seems like an error message coming from Document Printer. Do you have a printer configured as Document Printer instead of ESC/POS printer?

PS: ESC/POS mode directly communicates with printer via device driver. If you need to use Generic/Text driver try setting up printer type as TEXT.

The error appears anyway!