SambaPOS Forum
English Boards => Support => Topic started by: jenem on January 08, 2012, 06:05:33 am
-
I have had a look at the print tags here http://doc.sambapos.org/doku.php/en/guide/printformattingcommands
But I could not see how to wrap long lines on printed receipt.
How (or if)is it possible to get a long line to overflow onto next line and then print price.
Any help would be appreciated.
Or is it possible to have full product description on button but print abbreviated print description
ie button = Bacon and tomato paninii with scrambled eggs & beans
print = B&T pannini & scrambled eggs +beans
Edgar
(I know I could Truncate product description if there was no alternative)
-
If you use <J> tag the line will not wrap - you need to use <L> or <C> to wrap lines.
To have abbreviated text on the receipt you need to set the Product Name to what you want printed. Use Header Text when creating the menu to show full description. So to quote you, button = Header Text, and print = Product Name
Or you could try this for the printer template - Line Template
<L00>{NAME}
* {PROPERTIES}
<J00>|{QUANTITY}x |${TOTAL}| ${TOTAL AMOUNT}
This makes the tickets longer as you always print 2 lines per item minimum, but solves your problem another way.
Its possible Emre may have another way that isn't documented.
-
Hi John,
Yes I found the option for change product and header text in product properties.
I'll have a play around. To be fair Sambapos is a first class piece of software and has more than enough to keep me happy.
I only wish I could program.
I learnt simple basic programming many years but only enough to get through exams.
Edgar
-
Hi. It should wrap <J> tag when using with Slip Printer but I forgot to re-enable it while making latest changes with tags. Now it should work fine with 2.79. For long lines it automatically drops second part like John suggested. But you'll not see this effect on port, demo or text printers since they should print on line at a time.
Alternatively you can use Tag field for printing shorter titles. {PRODUCT TAG} prints Tag if not empty. If empty it should print product name instead.
-
As always,
thanks Emre
Edgar
-
Emre,
Just tested and with long lines the price does drop to the next line, but the product name does not wrap - it truncates at the end of the first line.
-
Thanks for trying John.
I don't have access to a receipt printer yet.
Edgar
-
I tested it.. Latest release should work fine.
-
Thanks Emre.
Edgar
-
Hi Emre/John,
Thanks for all your great efforts..!!!
I have a query here..
Can WE have 2 different menus one for the Handheld terminal and other for the POS Terminal. I know it is Possible from the main the DePartment tab.
The reason for 2 different Menus with same items in both is coz of the size of the item name. The handheld terminals the items are merely visible if we keeP big names. Can we have some 1-1 maPPing for each of these menu items of POS and teminal menus
Do you suggest any work arounds for this.??
-
Mozhi,
Yes, in Departments you can select a different menu for the Terminal app. You will need to create a menu specific to the Terminal app and it will be maintained separately to the main menu in respect of layout - price changes, modifiers, etc will update automatically. New/deleted items must be manually added/removed from both menus.
-
Hi all,
Have anyone tried a ethernet printer in your setups. In my setup, there will be a ethernet printer in the kitchen which will be directly connected to my switch. All the client machines will communicate to the Kitchen printer to place the kitchen orders.
My problem is I am not able to access the printer. When i tried to ping the printer Ip (assigned while installing the driver), i am not able to reach the same. However wrt to the physical connectivity the lights are glowing on both the switch and the printer ends.
Any assistance on the same would be greatly appreciated.
Thanks in Advance
-
What is the make and model? Do you have a Product URL?
Different brands and models of receipt printers are different to setup, some are really easy, but most take a bit to get going first time around.
-
http://www.tvs-e.in/product.aspx?pid=5. (http://www.tvs-e.in/product.aspx?pid=5.) This is the website. But not much information is present.
-
Hi all,
Have anyone tried a ethernet printer in your setups. In my setup, there will be a ethernet printer in the kitchen which will be directly connected to my switch. All the client machines will communicate to the Kitchen printer to place the kitchen orders.
My problem is I am not able to access the printer. When i tried to ping the printer Ip (assigned while installing the driver), i am not able to reach the same. However wrt to the physical connectivity the lights are glowing on both the switch and the printer ends.
Any assistance on the same would be greatly appreciated.
Thanks in Advance
Mozhi, you assigned IP while installing driver but that IP configuration should be uploaded to printer. For this reason you'll connect to the printer with Ad-Hoc connection and upload settings with configuration program.
-
http://www.tvs-e.in/product.aspx?pid=5. (http://www.tvs-e.in/product.aspx?pid=5.) This is the website. But not much information is present.
The specs only shows USB & Parallel.
The Drivers will be C:\VENDOR THERMAL PRINTER 3.X\
-
They remove the parallel port and replace it with ethernet port.
How do i upload the ip configuration to the printer. There is a button near the ethernet port, when i press it it prints
The machine gives a standalone receipt with the below information
MAC Address: 44:A8:C2:00:53:60
Ip Address:192.168.0.192
Subnet Mask: 255.255.255.0
Gateway:192.168.0.1 < This Ip I set it to my server where DHCp is running)
-
Run the setup program again and change the IP address to 192.168.0.190. Then print the test ticket.
If it shows the new IP then its ready to use. You should be able to send a windows test print to it.
I just installed the drivers onto my computer and everything looks good
-
John,
can you explain the process in detail. How do i send a windows test print
-
I just re-installed the printer again and set the new Ip to 192.168.0.190. and tried to ping that Ip but it is not reachable.
New Ip: 192.168.0.190 - Not reachable
Old Ip: 192.168.0.192 - reachable even after the installation.
Not sure if I am testing the same way as you told?
-
How do i upload the ip configuration to the printer. There is a button near the ethernet port, when i press it it prints
The machine gives a standalone receipt with the below information
MAC Address: 44:A8:C2:00:53:60
Ip Address:192.168.0.192
Subnet Mask: 255.255.255.0
Gateway:192.168.0.1 < This Ip I set it to my server where DHCp is running)
What does it print now?
-
Computer IP should start with 192.168.0.* too. Can you check that?
-
John,
it still prints 192.168.0.192 only
Emre,
My comupter Ip is 192.168.0.1 which is set as the Gateway Ip of the printer
-
I just install the ethernet pos printer myself and I got the same headache. The manual did not explain much on how to set it up. So, I google around and after a frustrating 2 hours and almost give up. I finally know how to connect it.
First I would assume you already install the driver. (the cd that comes with the printer, otherwise you need to download it and install it)
Second, I would assume you already add the printer to your computer with the ethernet port and put in the gateway ip. (192.168.0.1)
Finally, here is the tricky part that they did not tell you. You NEED to make a change to your internet tcp/ip to 192.168.0.xxx (where xxx is the number from 2 to 191) or create a new local connection and set the ip manually to 192.168.0.xxx
Hope that will work for you! For me, my internet address 192.168.0.100 and the printer default ip is 192.168.192.168, so I alter the internet ip to 192.168.192.2 and after that the printer show available and I can print my tickets.
-Leon-
-
Thanks Leon, but i have actually tried the same, Initially my LAN was in192.168.1.xxx and the printer by default was set to 192.168.0.192 with mask 255.255.255.0 and default gateway to 192.168.0.1
So i actually changed my LAN to 192.168.0.xxx subnet, this time i was able to ping the printer IP but was not able to print to it.
Think i am skipping some configuration stuff elsewhere.
-
Mozhi,
Your subnet mask on all your computers must be 255.255.255.0
Your gateway on all your computers should be 192.168.0.1 (doesn't really matter as you have no internet connection)
IP address range for your network is 192.168.0.2-254
Server IP - 192.168.0.1
Your Kitchen printer is 192.168.0.192 which you can ping.
1. Go to (on Win XP) Control Panel -> Printers & Faxes.
2. Add new printer
3. Select local printer
4. Create New Port
5. Select Standard TCP/IP Port
6. Enter 192.168.0.192 as Hostname/IP address
7. If asked for additional port info - select Generic Network Card
8. Click Have Disk
9. Browse to C:\VENDOR THERMAL PRINTER 3.X\WINXP (if this directory is not there run the setup on the printers CD)
10. Select the printer from the list - VENDOR THERMAL PRINTER
11. Replace driver if asked.
12. Share printer as KITCHEN
13. Click Test Print button.
If that does not work, go back to the supplier for help and maybe a manual.
-
Thanks John for the detailed step. But I have actually tried the entire process after going through some videos on internet on youtube and now as you told i have called the vendor, he will be available at my home to assist me in the process.
I will update the steps in samba forum after the issue gets resolved.
-
The only thing that has not been mentioned here is DNS. Do you have all devices set to the same Pri and Sec DNS?
-
The only thing that has not been mentioned here is DNS. Do you have all devices set to the same Pri and Sec DNS?
DNS only has an impact on resolving URL's to IP's. IP addresses & NetBIOS names are not DNS dependent.
-
Hi All,
Finally got my Ethernet printer working
Thanks John for all the Support extended.
In case of ethernet/KOT printers the installation setup is not as how you do a normal parallel/USB port installation.
Find Below the procedure to setup a ethernet printer
1. First Connect your Ethernet printer to your LAN
2. Ethernet printer has to be set with a Ip address, for this reason there are softwares to write on the printers Firmware.
Usually the Machine Vendor doesn't provide it or there are very less documentations available on the internet
First Try asking your vendor for the Ip address patcher. This software has to write directly into the printers firmware.
Try this software link download,
https://www.yousendit.com/dl?phi_action=app/orchestrateDownload&rurl=https%253A%252F%252Fwww.yousendit.com%252Ftransfer.php%253Faction%253Dbatch_download%2526send_id%253D1405117546%2526email%253D972a5149ad6ba3c8432828f97c3b8db7&s=19105&cid=tx-02002208350200000000 (https://www.yousendit.com/dl?phi_action=app/orchestrateDownload&rurl=https%253A%252F%252Fwww.yousendit.com%252Ftransfer.php%253Faction%253Dbatch_download%2526send_id%253D1405117546%2526email%253D972a5149ad6ba3c8432828f97c3b8db7&s=19105&cid=tx-02002208350200000000)
Note: Emre/John - pls download this patch and add this to our downloads repository, as I am not sure of how long this link will be valid.
There is a pDF file which clearly explains the process of installation
Follow the Steps and set the Ip address of the printer(Remember to set an ip of your local LAN)
3. Now install your software driver and during installation select type of printer option to TCp/ip and when prompted to enter ip address provide the ip address which you have loaded on the printer firmware in step 2
4. Configure this printer on the machine(Server machine) running SAMBA pos and share it across to all terminals.
5. Send print Jobs to the printer from the printer
Trouble Shooting:
After installation these printers might be in offline mode, so in these cases your print job goes to the printer pool but doesn't gets printed.
Change your printer mode to online by deselecting use printer offline and now it starts printing.
In case of Windows 7, go to Control panel -> Devices and printers -> <Select and double click your printer>
This opens your printers Job Queue, there select printer from your Top menus and unselect use printer offline mode.