Printing to printer, windows 7

sohcahtoa82 at gmail.com sohcahtoa82 at gmail.com
Tue Feb 17 20:59:26 EST 2015


On Monday, February 16, 2015 at 6:08:33 PM UTC-8, ken.h... at gmail.com wrote:
> Would seem to be a simple problem.  I just want to print to my printer instead of the console using Python 2.7, Windows 7.  Hours of looking through FAQ's and Google haven't yielded a solution.  Any suggestions appreciated --

I know that most HP printers support connecting on TCP port 9100 and sending plain text to be printed.  Not sure about other brands.  If you want to get fancy, you can look up PJL/PCL to do text formatting.

Of course, this requires you to know the IP address of the printer.  I wouldn't know how to get that programmatically.



More information about the Python-list mailing list