How to Print in A5 Size

Hello Samba Team!
I am using a Laser Printer with A5 sheets. I have scourged the forum for how to format a ticket template that fills an entire A5 inclusive of a logo, bigger text, etc. Whatever I try I end up with a print out made for a POS printer on an A5 sheet. The ticket itself only covers approximately half of the A5. Is there anyone knows, or a step by step tutorial, on how to create a customized template that can fill an A5 sheet?

I am not computer savvy at all so please be patient with me.

Regards,
Sjanmoh

Increase Line Character Count parameter value of related printer configuration.

Print a test page from the printer check the character count and go to samba pos and put the number there and increase or decrease that number until it fits as desired

1 Like

I have tried that. In the demo printer it works when it prints to notepad but when actually printing the text just rolls over onto the line below and everything becomes a mess. It maintains its ‘receipt’ printer width when actually printing.

To prevent roll over I had to decrease the line character count but that leave me in my original problem whereby I have an A5 sheet with only a corner printed as a receipt. Any ideas on how to circumvent that?

Try adjusting page size through printer’s settings.

Hi Emre, I got the page width to work, but in the solution a new problem arose:

I can set the PRINTER TYPE to HTML and the logo printing works but the spacing and other formatting is lost such as the Justified left position for items and right position for pricing.

If I set the PRINTER TYPE to WINDOWS, the width of the receipt can be controlled by the

Line Character count and it fills the A5 sheet, but in this configuration I cannot get the logo the print.

I have copied my coding here and attached a picture of the two different receipts after printing: the one on the right is HTML and the one on the left is WINDOWS configuration.

In both cases I am also trying to get rid of the excess space between ordered items which is not consistent for reasons I can’t understand?

[LAYOUT]

– General layout

C:\Logo1.bmp

LA VERANDA

+255 765 093 999

info@veranda-tz.com

-

{ENTITIES}|Date:{TICKET DATE}

Time:{TIME}|Ticket No:{TICKET NO}

-

{ORDERS}

*

{DISCOUNTS}

[Total Gift:|{ORDER STATE TOTAL:Gift}]

{SERVICES}

Total:|{TICKET TOTAL}

{PAYMENTS}

*

THE BEST THINGS IN LIFE ARE MEANT TO BE SHARED!

[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}

Hi Emre,
Any luck on the above?
Thanks.

Hi, Emre.
I have laser printer.

My settings printer:

My templates code:

[LAYOUT]
-- General layout
-- <T> - печать серых полей до и после текста
-- <L> - перенос строки
-- <C00> - по центру
-- <L00> - по левому краю
-- <R00> - по правому краю
<div style="font-size:14px;text-align:center">Welcome to "Aroy-Aroy"</div>
<DB>
<BMP>k:\bunner.bmp
<div style="font-size:10px">
<L>
<J00>Date: {TICKET DATE} | Ticket No: {TICKET NO}
<J00>Time: {TICKET TIME} | {ENTITIES}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J00>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<div style="font-size:15px;text-align:center">T H A N K   Y O U !</div>
</div>

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

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

[ORDERS]
-- Default format for orders
<J00>{NAME}|{QUANTITY} x|{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:Tables]
-- Table entity format
Table No: {ENTITY NAME}

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

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

[ENTITIES:Customers]
-- Customer entity format
Customer: {ENTITY NAME}

Now ticket printing on the left side page A4.
I want ticket printing on the center page A4.

It is possible?

Thank You!