Discuss Printing file from python in the Python Programming forum on Dev Shed. Printing file from python Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
Posts: 13
Time spent in forums: 2 h 13 m 11 sec
Reputation Power: 0
Quote:
Originally Posted by WynnDeezl
import os
os.system(r'print printername filename')
I setup as follows:
file = path/filename
This is what I entered:
import os
os.system('print Brother HL-2280DW Printer file')
the screen (on laptop) flashed but never printed. LIke it wants to print but no cigar.
To get the printer name I went to 'Devices and Printers' and then just entered the default printer name. Is there someway that I can send something to the printer to verify it's the correct printer name?