Free knowledge blog: linux, programming, open source, databases, android, frameworks, web and computing in general
When printing receipts on thermal printers (ESC POS) sometimes it is needed to print images of any type, for example, to print the customer’s logo and so on.
In this post I will show you how to print any kind of images: you will be able to print local images, base64 images and internet images.
Please note that we will print images on thermal printer by using JavaScript, but once you learn how to do it with JS you will be able to do it from another programming languages.
In this article I will show you how to use native C# to open a thermal printer as a file and send it bytes or data including ESC POS commands.
Remember that I already have a plugin that allows you to print on thermal printers and exposes a consumable HTTP API from any programming language so that you can use it and not implement your own library, but if you want to see how it’s done, keep reading.
In this post I will show you how to fix an error that appears in my thermal printer plugin that says: Error en el servidor: sql: no rows in result set.
This error says that there are no rows in the database, and you may be wondering what printing has to do with a database, so that is exactly what I will discuss in this post.
In this post I will show you how to print a PDF document from the Windows command line, terminal or CMD using the executable PDFtoPrinter.exe
.
As you know, printing a PDF from the Windows terminal is not possible using the print
command (since it only prints text files), since a translator is required to read the content of the PDF and send it to the printer.
It is precisely what this utility called PDFtoPrinter.exe
does, and in this post I’ll show you how to use it.
In this post I will show you how to share a printer on Windows 10, directly from the control panel.
In this post I will show you how to print a ticket or receipt by using JavaScript (client side) and a thermal printer. At the end we will have a great ticket that looks like this:
Obviously you can change the font family, size, logo and so on. And remember: we will be using only pure CSS, HTML & JavaScript, no frameworks; though you can use any framework to render the content before printing.