How can i add logo into reciept

How can i add logo into reciept?

Two options, you load dmp into printer memory and trigger print with command code. Depending on printer this can print allot faster.
Put single colour BMP image in a directory on each terminal which samba has permissions for and do;
<BMP>c:\whatever directory\filename.bmp
In template.
The second method can be slow to print if not compressed image correctly and depending on printer.

3 Likes

Hello sir! Thanks in advance for help.
I now try to do it but it is not work.! it shown message like this
**"Initialization of System.Window.Media.Imaging.bitmapImage’ Threw an exception Line Number ‘1’ and line position ‘304’

Show your template, you’ve formatted something wrong and until we see your template we can’t help

Hello Sir! Actually we newly user, so we want to update our receipt !
Here is my code:
[LAYOUT]
– General layout–
<BMP>C:\Users\Mr. DAY\Documents\SambaPOS5\Logo1.bmp

<div style=“font-size:25px;font-weight:bold;text-align:center;font-family:‘Calibri’”>TRUMP COFFEE</div>
<L00> No.6 Corner Lok Taneuy, Banteay Chas, Siem Reap
<L00> Tel: 012 55 33 22 11
<L00>No :SR-100{TICKET NO}
<L00>Date :{TICKET DATE} {TIME}
<L00>Cashier:{USER NAME}
<F>-
<div style=“font-size:13px;font-weight:bold;text-align:left;font-family:‘Calibri’”>
<table>
<tr>
<td width=“25”>Qty</td>
<td width=“196”>Item Desription</td>
<td width=28 align=right>Price</td>
</tr>
</table>
</div>
<F>-
{ORDERS}
<F>=
<EB>
<J00>SubTotal:|
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Grand Total(US):|{TICKET TOTAL}
<J10>Grand Total(Riel):expressionless:

<DB>
<F>=
{CHANGES}
<L00>Cash Received :
<L00>Changed :

<C10>T H A N K Y O U

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

I see HTML code there, that kind of info its good to mention, pretty sure you have to use <img xxxxxx> html type code if using HTML mode.

1 Like

Dont need to use < IMG > i use html printer type and my logo file path is as below

<BMP>C:\Users\Rick\Documents\Logo1.png

i did like these is it right?
<img src="https://drive.google.com/drive/folders/1C2U7vvTimY4kZALkcyqgKLeRWPsbdIyM?ogsrc=32/Trump.png" width="150" height="30">

You dont need to do all that, check your image path is it correct, spelt correctly, capitals in correct place etc

is there actually a space between Mr. and DAY (Mr.DAY or Mr. DAY)

Failing that remove your logo and just put it in the documents folder and not within the sambaPOS5 folder so your link where your logo would be saved is:

<BMP>C:\Users\Mr. DAY\Documents\Logo1.bmp

It may need to only be in the document folder

Paths with space might be the reason of the issue. Place your file under some simple path like
C:\logos\Logo.bmp

4 Likes

Thanks so much to Emre
Now i can do it

hello @emre , I do not know why it show logo but it display code as well.
how can solve this ?

Does it actually print the code?
You should also update there is a newer version in release category.

yes it printed with code

Guess it is set as html printer
Try replacing

C:\logo\logo4.BMP

With

 <img src="C:/logo/logo4.BMP">
1 Like

@KryptonFactor a quick forum tip if you want to format code use ``` before and after .

PS Quit killing my formatting lol. Ill edit it for you.

You can even define a language like following

```html
<img src="C:/logo/logo4.BMP">
```

But for most cases it autodetects.

1 Like

Cheers was using my phone :+1:

1 Like