Print Template Width Problem

Dear Team,

Here is my output of the print from the EPSON TM T81

Can you help me how to format this properly ?

The width of the paper is 80 MM

Can you please post a screen shot of the printer settings and the printer template.

I took a template from one of the post.

[LAYOUT]
-- General layout
<EB>
<C11>Tumut Motorcycle
<C11>Accessories Pty Ltd
<L>
<C00>78 Adelong Road, Tumut NSW 2720
<C00>Phone: (02) 6947 1797   Fax: (02) 6947 1293
<C00>ABN: 89 092 507 830
<DB>
<L>
<C00>Website: www.tmatumut.com.au
<C00>Email: sales@tmatumut.com.au
<L>
<J00>Date: {TICKET DATE}|Tax Invoice:| {TICKET NO}
<J00>Time: {TIME}|Sales Rep: {ENTITY NAME:Staff}
<L>
{ENTITIES}
<L00>------------------ Items -------------------
<L>
{ORDERS}
[<L00>------------------ Notes -------------------
<L>
{NOTE}
<L>]
<L00>------------------ Total -------------------
{DISCOUNTS}
-- [<J00>Total Gift|${ORDER STATE TOTAL:Gift}]
<J00>GST (Inc)|$[=F(TN('{TICKET TOTAL}') - TN('{TICKET TOTAL}')/1.1)]
<EB>
<J01>Total|$ {TICKET TOTAL}
<DB>
<J00>Tendered|${TENDERED TOTAL}
<J00>Change|${CHANGE TOTAL}
[<L00>----------------- Payment ------------------
{PAYMENTS}]
<F>-
<C10>T H A N K   Y O U
<L>
<L>
<C00>Returns only accepted within 7 days
<C00>from purchase and in original packaging.


[DISCOUNTS]
<J00>{CALCULATION NAME}[=F('{CALCULATION AMOUNT}')]|{CALCULATION TOTAL}

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

[ORDERS]
-- Default format for orders
<L00>{NAME}
<J00>{ORDER TAGS}|{QUANTITY}x ${TOTAL}
<L>

[ORDERS:Gift]
-- Format for gifted orders
<L00>{NAME}
<R00>{QUANTITY}x *GIFT*
{ORDER TAGS}
<L>

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

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

[ENTITIES:Customer]
-- Customer entity format
<C00>Account: {ENTITY NAME}
<C00>Balance: $[=F(0-TN('{ENTITY BALANCE}'))]
<L>

[ENTITIES:Layby]
-- Customer entity format
<C00>Layby: {ENTITY NAME}
<C00>Balance: $[=F(0-TN('{ENTITY BALANCE}'))]
<L>

[ENTITIES:Gift Certificate]
-- Customer entity format
<C00>Gift Certificate: {ENTITY NAME}
<C00>Balance: $[=F(0-TN('{ENTITY BALANCE}'))]
<QR>{ENTITY NAME}
<L>

There may be an error in your Template, but it’s difficult to tell with the way it displays in the forum. Please edit your post, highlight the Template text and click the CODE button </> to preserve formatting of the Template text, and Save your edit.

I have modified the template now. please check and let me know

At first glance, the Template looks good.

It appears that your printer is not obeying NewLine/CRLF (Carriage Return Line Feed), so it is printing everything as one very long single line, which ends up wrapping over and over. Then it also doesn’t feed properly at the end, so you have the Thank You line from the previous ticket being printed on the next ticket, and the problem repeats.

So either it is a problem with the printer driver setup or the Template has hidden characters in it that the printer cannot understand. You could try pasting the template in Notepad, save the file, then copy it out of Notepad and paste it back into SambaPOS, save and try again.

Hello

It is basically comes with the default settings and default template on Samba V4.

I am using Thermal paper which is 88mm width.

Do you have any another suggestion ?

Port printer is selected as printer type and probably this is the reason of the issue.

Install windows driver for your printer, select Ticket Printer and choose your printer name from the combobox instead of typing Com4

Hello Emre,

Here is the one after i have installed the Printer Driver.

Here is my Ticket Template

[LAYOUT]
<L00>Receipt No: {TICKET NO}
<F>-
{ORDERS}
<F>-
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<F>-

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

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

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{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}

I would like to ask the following questions

  1. With Port, it is not doing the Paper Cutting ?. Cannot we use the Port to send data to printer ?

  2. Can you please let me know how to format the text ?. It is not printing properly. Can you help me in that regard ?

Hi Emre,

It will be really helpful if you can give me a reply.

Thanks

You should try and use Windows printer drivers where possible.

Back to your first post, change your Line Character Count to 48, and remove the first 2 lines from the printer template
[LAYOUT]
– General Layout

Port Printer type sends commands directly to the printer and really is best for Pole Displays. Some printers will not understand carriage returns using this method.

Still looks like Ticket Printer not selected for Printer Type setting.

1 Like

Perfect Emre

Thanks.