how to print to printer ?

Christopher Browne cbbrowne at acm.org
Fri Apr 12 11:20:46 EDT 2002


Uwe Schmitt <uwe at rocksport.de> wrote:
> I'd like to send "raw" data to a printer, how can I do this,
> using Python ???

It's terribly platform dependent.

On Unix-like platforms, it would involve opening output to some file
like /dev/lp, /dev/lp0, or such, which might require special
permission configuration.

On Win32, it likely involves throwing data at some Win32 function;
heaven only knows what.

If you haven't even figured out what platform you're on, and the
implications of that, I'd suggest the thought that you've really not
thought out what you want...
-- 
(concatenate 'string "cbbrowne" "@ntlug.org")
http://www.ntlug.org/~cbbrowne/sap.html
Visualize whirled peas.



More information about the Python-list mailing list