'Print using Brother QL-800 printer with raspberry pi
I'm trying to use raspberry pi to print from a python code.
I tried using the brother-ql module but it doesn't give me an error. However, the printer doesn't print anything.
This a snapshot of my code and the result it gives. enter image description here
Is there any suggestion? I have posted the coding in the image
Solution 1:[1]
I managed to print with the Brother QL-800 printer with Raspberry Pi.
I used the cups module in python to print.
import cups
conn = cups.Connection()
printers = conn.getPrinters()
printer_name = (printers.keys())[0]
#desired location of file to read
conn.printFile(printer_name, '/home/pi/Desktop/whatsup.csv',"",{})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
