thermal-printer

Printooth library, label feed control issue

走远了吗. 提交于 2021-02-11 13:53:57
问题 I am new in Android development. The following bloc is part of my APP's code, it does a simple job of select two columns of information from a local sqlite database's table, filter it by a scanned barcode and print the information retrieved plus the current date. My issue is the label feed control. Printer only execute Android APP's command when in ESC/POS mode, and doesn't stop the label paper in the right position for the next label to be printed. If anyone have ever made something similar

ESC/POS printing barcode aligned vertically and horizontally in the middle?

青春壹個敷衍的年華 提交于 2021-01-29 12:30:36
问题 My code is currently printing a barcode and hri text easily, but I want everything to be printed dead centre on the label. Can someone please tell me when I should declare the alignment command? I tried declaring it at the beginning and just before the barcode print command, but the barcode is still printing in the top left corner. Here is my align command: def align_esc(self,esc,n): ''' ESC|a|n 0<=n<=2,48<=n<=50 0,48 = Left; 1,49 = Mid; 2,50 = Right ''' align = [esc,n] align_prnt = bytearray

Printing preview doesn't working laravel-dompdf

放肆的年华 提交于 2021-01-29 00:03:30
问题 I'm developing an aplication to manage multiples branches for a fast food locale, it's up in a shared hosting, and trying to use barryvdh/laravel-dompdf library to print in a thermal printer (client side) two tickets (one for invoice and other for order). The idea is when the invoice is registered, then show the options to print the two tickets. But right now the web print preview doesn't show, only register the invoice and log show this error 'PrinterController::pdf Invalid characters passed

Printing preview doesn't working laravel-dompdf

烈酒焚心 提交于 2021-01-28 23:56:02
问题 I'm developing an aplication to manage multiples branches for a fast food locale, it's up in a shared hosting, and trying to use barryvdh/laravel-dompdf library to print in a thermal printer (client side) two tickets (one for invoice and other for order). The idea is when the invoice is registered, then show the options to print the two tickets. But right now the web print preview doesn't show, only register the invoice and log show this error 'PrinterController::pdf Invalid characters passed

How to equally separate items in a printable area

最后都变了- 提交于 2020-06-29 03:48:24
问题 I'm writing a simple app in Android to print through a ESC/POS thermal printer. I need to equally divide the printable area among three different items so that they look justified. I am unable to find a way to print the same am using these commands to feed into my printer https://reliance-escpos-commands.readthedocs.io/en/latest/layout.html attaching an image for reference, any help or suggestion will be appreciated. "Amount" to the left ":" in the center and "value" to the right 回答1: You won

how to print images with ESC/POS commands?

房东的猫 提交于 2020-04-16 06:40:26
问题 i have an Epson-TMH6000III thermal printer and i want to print some bitmap with it by using ESC/POS commands. but before this i want to print a very simple single line with ESC/POS printing image commands. here's my attempt : namespace printingImageMode { class Program { static void Main(string[] args) { Bitmap bmp = new Bitmap(@"C:\Users\falamarzi\Desktop\Kyan Graphic Viewer\jTest.jpg"); int msb = (int)(bmp.Width & 0x0000ff00) >> 8; int lsb = (int)(bmp.Width & 0x000000ff); byte msbB =

how to print images with ESC/POS commands?

末鹿安然 提交于 2020-04-16 06:40:00
问题 i have an Epson-TMH6000III thermal printer and i want to print some bitmap with it by using ESC/POS commands. but before this i want to print a very simple single line with ESC/POS printing image commands. here's my attempt : namespace printingImageMode { class Program { static void Main(string[] args) { Bitmap bmp = new Bitmap(@"C:\Users\falamarzi\Desktop\Kyan Graphic Viewer\jTest.jpg"); int msb = (int)(bmp.Width & 0x0000ff00) >> 8; int lsb = (int)(bmp.Width & 0x000000ff); byte msbB =

Connect to printer connecting on local network

半城伤御伤魂 提交于 2020-01-25 06:40:49
问题 I am new to android and working on printing modules now a days.I am developing an app to send print receipt to printers connected on my local network of my own choice. I am interested to see how many printers are connected on my local network if i click them the details should be shown somewhere. What i have tried to achieve this is implemented the example https://github.com/Bhagvati/NSD-Network-service-discovery-Android/blob/master/NSD/src/com/example/android/nsd/NSDMainActivity.java I have

Send data to thermal printer [duplicate]

孤街浪徒 提交于 2020-01-11 10:41:18
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: .NET code to send ZPL to Zebra printers My company has a Eltron 2543 thermal printer. I'm developing an VB.NET application incorporating FedEx web services to print off shipping labels. I can save off the data file without a problem, but I was wondering how I send this data stream to a shared printer on a network. Do I need to include the Eltron 2543 driver in my solution? Sort of lost here and would love if