i have been using the sambapos for sometime now and want to appreciate and say this software has been very helpful…thnx @emre
i just have a questtion…i have a formatted printer template, wanted to understand is there a way to have different font sizes for different tags on same line.
Example: if i have a template like which has a line like the one given below
J00 Date:{TICKET DATE} | Time:{TIME}
can i have Date in J00 size and {TIME} in J10 size on same line?
just checking is it possible since i didnt find this anywhere in the forum.
fyi…i am using a thermal pos printer and type is ticket printer.
i have tried html printer with tagging done accordingly in the template…however my printer printed all junk characters. not sure if it supports html printing (Xpinter xb65b)
Thank you
This is not possible in xctpos mode.
Should be possible in html printer mode but you would need to create template for it.
Banned
July 6, 2019, 10:40am
3
Setup your printer type HTML
and you can try this template.
if you want to change the font size and Font type , you can edit this lines
<div style="font-size:12px;font-family:Tahoma">
Template ;
[LAYOUT]
-- General layout
-- <img src="c:\menufoto\bizim2.bmp" width="260" height="90">
<div style="font-size:14px;font-family:Tahoma">
<table>
<tr>
<td width=38 align=Left>Tarih:</td> <td width=220>{TICKET DATE} / {TICKET TIME} - Ticket No:{TICKET NO}</td>
</table>
</div>
———————————————————————————————————————————
<div style="font-size:12px;font-family:Tahoma">
<table>
{ENTITIES}
</table>
</div>
———————————————————————————————————————————
<div style="font-size:14px;font-family:Tahoma">
{ORDERS}
</div>
———————————————————————————————————————————
<div style="font-size:18px;font-family:Calibri">
<table>
<tr>
<td width=160 align=left>[='{PLAIN TOTAL}' != '' ? 'Total:</td><td width=90 align=Right>{PLAIN TOTAL} ₺' : 'Total:</td><td width=90 align=Right>{TICKET TOTAL} ₺'] </td>
</tr>
{SERVICES}
{DISCOUNTS}
{PAYMENTS}
<tr>
<td width=160 align=Left>[='{TICKET TOTAL}' == '{REMAINING TOTAL}' ? '' : '<div style="font-size:23px;font-family:Calibri">Remaining Total:</div></td><td width=90 align=Right><div style="font-size:23px;font-family:Calibri">{REMAINING TOTAL} ₺</div>']</td>
</tr>
<tr>
<td width=160 align=Left>[='{TICKET TOTAL}' != '{REMAINING TOTAL}' ? '' : '<div style="font-size:23px;font-family:Calibri">Remaining Total:</div></td><td width=90 align=Right><div style="font-size:23px;font-family:Calibri">{REMAINING TOTAL} ₺</div>']</td>
</tr>
</table>
</div>
———————————————————————————————————————————
<div style="font-size:18px;font-family:Calibri">
<table>
<tr>
<td width=280 align=Left>[='{NOTE}' != '' ? 'Not: {NOTE}' : '']
</td>
</tr>
<tr>
<td width=280 align=left>[='{TICKET TAG:Para Üstü}' > 0 ? 'Para Üstü: {TICKET TAG:Para Üstü} TL' : ''] </td>
</tr>
<td width=300 align=Left>[='{TICKET TAG:Ödeme Şekli}' !='' ? 'Ödeme Şekli: {TICKET TAG:Ödeme Şekli}':'']
</td>
</tr>
</table>
</div>
[DISCOUNTS]
<tr>
<td width=160 align=Left>{CALCULATION NAME}:</td><td width=70 align=Right>{CALCULATION TOTAL}</td>
</tr>
[SERVICES]
<tr>
<td width=160 align=Left>{CALCULATION NAME}:</td><td width=70 align=Right>[{CALCULATION TOTAL} ₺]</td>
</tr>
[TAXES]
<tr>
<td width=160 align=Left>{TAX NAME} %{TAX RATE}:</td><td width=70 align=Right>{TAX AMOUNT}</td>
</tr>
[PAYMENTS]
<tr>
<td width=170 align=Left>{PAYMENT NAME}:</td><td width=70 align=Right>[{PAYMENT AMOUNT} ₺]</td>
</tr>
[ORDERS]
<table>
<tr>
<td width=190 align=left>{QUANTITY} {NAME} </td><td width=60 align=Right> {TOTAL PRICE}</td>
</tr>
{ORDER TAGS}
</table>
[ORDERS:İkram]
-- Format for gifted orders
<table>
<tr>
<td width=200>- {QUANTITY} {NAME} </td><<td align=Right width=50>İKRAM</td>
</tr>
</table>
[ORDERS:İade]
-- Nothing will print for void lines
<table>
<tr>
<td width=200>- {QUANTITY} {NAME} </td><<td align=Right width=50>İADE</td>
</tr>
</table>
[ORDER TAGS]
–- Format for order tags
<tr>
<td width=190>
<div style="font-size:12;font-family:Calibri">
» {ORDER TAG NAME} [=TN('{ORDER TAG QUANTITY}') > 1 ? ' x{ORDER TAG QUANTITY}' : ' ']
</div>
</td><td width=30 Align=Right>
<div style="font-size:16;font-family:Calibri">
{ORDER TAG TOTAL PRICE}
</div>
</td>
</tr>
[ENTITIES:Masa]
-- Table entity format
<tr>
<td width=95>{ENTITY NAME}</td> <td width=180> Garson:{USER NAME}</td>
</tr>
———————————————————————————————————————————
[ENTITIES:Müşteri]
-- Customer entity format
<tr>
<td width=220 align=left>Guest: {ENTITY NAME} - {ENTITY DATA:Vergi Numarası}</td>
<tr>
<td width=240 align=left>{ENTITY DATA:Adres}<br/>Vergi No: {ENTITY DATA:Vergi Numarası}</td>
</tr>```
1 Like
Thanks Serhatoglu!!!
Sorry for late post…i will try this…at the moment the printing is happening in a weird manner.
It prints from bottom to top (in inverted manner)
it wastes lot of paper before and after printing
it prints 75% at start of the paper(inverted) and then after its done wasting paper it prints the rest…
uploading the printer output
This is how it actually prints -
This is the readable inverted version -
Can you help me why is it printing in bottom to top and inverted?
i have selected the printer as html now(havent yet made any changes to font etc.)
Jesse
August 3, 2019, 3:27pm
5
You may need to check your printer driver settings.
Ok…will check…it printa fine when ticket printer is selected…nt sure wht happens when i select html printer. Not sure what to check in printer driver settings.
Banned
August 3, 2019, 4:40pm
7
The driver may have been installed in esc / pos mode the first time it was installed.
Also make sure that you have installed the latest driver from the manufacturer site.
I checked the driver…there isn’t any option to select POS or html at the time of installation. I will uninstall again and try to redo and see if this helps.
Btw, i am using Xprinter xp-365b (thermal and barcode printer).