Printing with thermal printers via usb - Flutter - flutter

I am developing a Flutter app, and I’ve been trying to print via usb in a thermal printer. I have found a lot of libraries/package for bluetooth thermal printers, but I need my program ALSO works via USB.
I only have found one package that allows me to print in almost any printer, the name of the package is “printing”, but this works whit PDF’s, and the thermal printer doesn’t allow print PDF’s.
Note: The app I am developing is for Windows.
Does someone know some package or method I can try to achieve my goal?
Thanks in advance for any help.

I would add a comment but I don't yet have enough reputation. However, I have faced a similar issue recently attempting to print to a thermal receipt printer that is USB.
The only solution I found was to create a flutter plugin with native windows code and use https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/winspool/. There is the win 32 package that could do the same thing https://pub.dev/packages/win32.
Hopefully someone else may have a better solution, but that is something to look into.

Try looking into quick_usb to connect to the printer via usb

Related

Can we Print using a Normal printer in IOS

I want to Know whether I can print a file through AIRPrint Printers only.
OR
I can print through a normal Printer connected to a Machine which can be connected through WIFI.
Thank you.
There's no built in API to print to anything other than an AirPrint printer.
If you put in all the hard work of writing your own printer drivers (or porting someone else's), you could presumably print to a normal printer, but it ain't going to be simple.

How to get print from wifi printer with iPhone?

can any body tell me how to integrate wifi printer option in an iPhone app? I have to get print from small receipt printers and my printers are not AirPrint supported.
My printer models are
EPSON TM T88, EPSON TM P60 and EPSON TM U220B network printers
I want to acces the printer via IP address
You must have an AirPrint supported printer.
References:
Drawing and Printing Guide for iOS
AirPrint 101
Normally, you must have an AirPrint supported printer. However there are workarounds:
The procedure here will allow you to print to any printer connected to windows.
Printopia will allow it on Macs.
I'm sure there are other methods/applications that allow it as well, just search them on Google or the App Store.
Printing over wifi with the iphone is somewhat of an iffy issue, only some printers are supported and for most of them a mac machine is obligatory.
However if you have jailbroken your phone you can search in cydia for an app that's called truprint. This one allows you to print with every printer that has wifi capability. The app is not free but there is a light version that i think will cover your needs.
For Epson receipt printers there is the ePOS-SDK for iOS. Using this you can print via WiFi and Bluetooth. The SDK is provided here:
http://download.epson-biz.com/
try the print n share or printcentral apps

Need help in writing a Receipt Printer driver for the Epson POS TM-T88 on iOS devices(iPhone, iPad)?

I write an native application for an iOS devices(iPhone and iPad) and want to print to Receipt Printer Epson TM-T88. I can not find any information on how to write a driver for Receipt Printer on iOS devices. Pleas can some one help me out or point out where even to start, thank you all.
Epson provides SDKs for iOS, which should be sufficient in connecting to their printers.
http://pos.epson.com/mobilesdks/index.htm
I don't believe the T88 is supported unless you have the Ethernet module to give the printer a TCP/IP connection as I believe that is the only way to print through iOS.
The target printer needs to be "AirPrint" capable. Currently, only a handful of HP printers are capable. I recommend you looking into solutions similar to Printopia.
I need to do this too but this is all I can find on StackOveflow:
Printing to Epson TM-T88V receipt printer from iOS/iPad using CUPS or other framework
Why can I not receive a response from a TCP/IP capable printer?
printing from ipad to receipt printer(Epson TM-T88v) thr wifi
The 3rd post mentions signing up with Epson Expert to gain access to technical docs etc. The TM-T88 Technical Reference Guide states:
With ESC/POS commands, you can
directly control all the TM printer functions, but detailed knowledge of printer specifications or
combination of commands is required, compared to using a driver.
To use ESC/POS commands, you need to agree to a nondisclosure contract first and obtain the
ESC/POS Application Programming Guide. Ask your dealer for details.
It also says this about the TM-T88V Mac Printer Driver:
Mac printer driver allows you to control the TM-T88V using Common
UNIX Printing System (CUPS) on Mac OS X.
This MacWorld forum post contains a lot of information about IOS printing via CUPS:
http://hints.macworld.com/article.php?story=20101027080807322

Sending print request from with-in an iPhone application

Is there a way to send a print request to a printer using wifi or some other means?
Edit:
There must be, because there are some applications which lets you do that. But how do they do it? For example,
HP iPrint Photo
Air Photo
EuroSmartzPrint
and maybe others as well.
There's no native way to print in Apple's SDK. Air Photo prints using a helper app installed on a computer, so it sends the request to the desktop app which actually sends the print request. HP's app can connect to HP printers that it can find on the network, presumably using Bonjour. The difficulty with printing directly is getting the right drivers, fortunately for HP, they make the printers too. EuroSmartz I believe does both previous methods, but they make no claim as to how good the quality will actually be printing directly to the printer, probably because they can't include vendor supplied drivers.
So, if you want to print your options are:
Connect to the printer via Bonjour and attempt to print without vendor supplied drivers (maybe you can find open source ones).
Write a desktop app to assist in printing. (Better quality, but requires a middle man.)
Update:
With iOS 4.2, Apple is including a new technology called "AirPrint". Apple is essentially doing both #1, by printing directly to HP printers that support ePrint (my understanding is that this doesn't use drivers in the traditional sense), and #2 by printing via a Mac with OS X 10.6.5.
Yes, you can certainly find printers nearby using Bonjour and the NSNetServiceBrowser class. Specifically you'd want to send its searchForServicesOfType: message, with a type of #"_ipp._tcp" (nearby printers). Check out the Browsing for Services article in the developer documentation. How the actual spooling to print works is beyond me. I'm just learning GameKit/Bonjour right now.
As far as I know it is only possible if the devices are Bonjour-enabled as part of the Made For iPod program. Then you can use EAAccessoryManager and related classes to make a connection and send data to the device. This is one of the harder things you can attempt on an iPhone...
Here's another (perhaps) useful question on the subject.

How mobile printer that work alone and with WIFI for POS app?

I'm hunting for a mobile POS printer for use in a mobile point-of-sale application (BestSeller). The requeriments is that must work independent of anything except the mobile device. So the solution is only: Printer + iPhone.
I have a early question on this, here but with not answers.
The idea is that the printer work as their own server and I can send print commands to make tickets and that stuff.
The salesman work outside the company,and have not ascces to internet or other facilities.
I found this:
http://www.barcodegiant.com/epson/mobilink.htm
and
http://www.barcodegiant.com/zebra/mz220.htm
but is not clear to me if will work as I imagine. And also, I don't find any how to in how make the programing...
You should probably just send your salesmen with laptops and printers as that solution is easy and well supported. I don't know of any solutions currently that would allow you to connect an iPhone directly to a printer or to print to a printer with wifi. Printing solutions currently available require some sort of desktop or server app counterpart to facilitate the actual printing.