epson

Epson epos sdk receipt alignment issue

﹥>﹥吖頭↗ 提交于 2019-12-03 05:09:28
i'm currently using epson ePOS SDK for android. i need to print the receipt that menu name align to the left and its price align to the right in the same line but it doesn't work properly, my temporary solution is add some feed line to make its price align right, is it possible to have both text align left and right in the same line ? (Attachments below and please ignore question mark symbols) mPrinter.addTextAlign(Printer.ALIGN_LEFT); mPrinter.addFeedLine(0); textData.append(menuName); mPrinter.addText(textData.toString()); textData.delete(0, textData.length()); mPrinter.addFeedLine(0); /

Receipt alignment is not working properly in swift

孤街浪徒 提交于 2019-12-01 14:18:40
I am currently printing receipt from my data when i print my receipt alignment data is not working properly i think that i should apply start index and end index to string because my product name length is different So i apply this code to check length of string here is screenshot of Receipt you can see in receipt alignment is wrong Here is my code to give alignment and receipt if ProductName.characters.count > 13 {let subStr = ProductName[ProductName.startIndex.advancedBy(0)... ProductName.characters.count(13)] strtext.appendString(String (format: "%@ %@ %@\n", sQuantity,subStr,s)) textData

Receipt alignment is not working properly in swift

岁酱吖の 提交于 2019-12-01 10:30:31
问题 I am currently printing receipt from my data when i print my receipt alignment data is not working properly i think that i should apply start index and end index to string because my product name length is different So i apply this code to check length of string here is screenshot of Receipt you can see in receipt alignment is wrong Here is my code to give alignment and receipt if ProductName.characters.count > 13 {let subStr = ProductName[ProductName.startIndex.advancedBy(0)... ProductName

Epson TM-T88V formatting

老子叫甜甜 提交于 2019-12-01 09:25:51
问题 I set up a little machine running Ubuntu Server 12.04 with an Epson TM-T88V plugged into it directly. At first I was able to print fine (using lp) but the auto-cutter wasn't working. I realized it just wasn't using the correct PPD file that was included with the driver, so once I set the printer to use that cutting started working fine. However, once I got it using the right PPD file the text is printing so light it's almost hard to read. When I tried to pass ESC/POS commands directly to it

OPOS PosExplorer.GetDevice() returns null when executed in Windows Service

拟墨画扇 提交于 2019-11-30 16:39:48
The code snippet below makes use of OPOS .NET to open a POS printer for printing. It works fine when executed as part of a standalone application. When executed by a Windows Service the call to GetDevice(...) always returns null. explorer = new PosExplorer(); device_info = explorer.GetDevice(DeviceType.PosPrinter, PrinterName); printer = (PosPrinter)explorer.CreateInstance(device_info); printer.Open(); printer.Claim(1000); printer.DeviceEnabled = true; The printer happens to be an Epson TM-U220B. Is there a security issue that needs to be overcome before a service has access to POS devices?

OPOS PosExplorer.GetDevice() returns null when executed in Windows Service

妖精的绣舞 提交于 2019-11-30 16:20:36
问题 The code snippet below makes use of OPOS .NET to open a POS printer for printing. It works fine when executed as part of a standalone application. When executed by a Windows Service the call to GetDevice(...) always returns null. explorer = new PosExplorer(); device_info = explorer.GetDevice(DeviceType.PosPrinter, PrinterName); printer = (PosPrinter)explorer.CreateInstance(device_info); printer.Open(); printer.Claim(1000); printer.DeviceEnabled = true; The printer happens to be an Epson TM

Printing directly to a thermal printer using ESC/POS Commands executed in C# with an interface of TCP/IP

和自甴很熟 提交于 2019-11-30 07:29:35
I was working on implementing ESC/POS(Epson Standard Code for Point of Sale) on a Kitchen printer(Aclas KP71M). I have a user interface the the POS user enters its string in to the user interface and the strings entered by the user will be sent to the printer and the printer prints the data. The printer interface with the host computer using Ethernet(100M) using TCP/IP connection. I have managed to embed each of the necessary commands in to a C# method and I also take some sample code on server/client C# connection and tried to include that in to my connection. The problem I am facing right

Why can I not receive a response from a TCP/IP capable printer?

北战南征 提交于 2019-11-29 23:01:58
问题 My ultimate goal is to send a print job to a printer over the internet. The catch is that the printer is connected directly to a router, so I can't count on a computer processing anything. The path a print job takes is: Computer -> Internet -> Router -> Printer The printer is an Epson TM-T88V with the UB-E02 connect it module (it originally came with the 25-pin module). The router is a D-Link DIR-655 with port 9500 redirected to LAN port 9100 and the LAN IP address of the printer. With this

Printing directly to a thermal printer using ESC/POS Commands executed in C# with an interface of TCP/IP

女生的网名这么多〃 提交于 2019-11-29 09:42:43
问题 I was working on implementing ESC/POS(Epson Standard Code for Point of Sale) on a Kitchen printer(Aclas KP71M). I have a user interface the the POS user enters its string in to the user interface and the strings entered by the user will be sent to the printer and the printer prints the data. The printer interface with the host computer using Ethernet(100M) using TCP/IP connection. I have managed to embed each of the necessary commands in to a C# method and I also take some sample code on

POS Application Development - Receipt Printing

人走茶凉 提交于 2019-11-28 17:06:05
I've been building a POS application for a restaurant/bar. The design part is done and for the past month I've been coding it. Everything works fine except now I need to print. I have to print to a receipt printer connected to the computer running the software and later I'll try to print in a remote printer like a kitchen one. I've searched for help in the matter only to find that the standard for printing in these types of printers is using POS for .NET. The thing is, this is now a bit outdated or at least it hasn't had any updates since a couple of years. There's a lot of questions being