Printing in a generic way - like the rest of Python

David Broadwell anti-spam.dbroadwell at mindspring.com
Tue May 13 13:14:52 EDT 2003


> There are, however, simple text applications that can be hijacked for
> this purpose.  Try
>
>     os.system("notepad /p filename.txt")

The only disadavantage is that is has to open notepad to actually do that.

something else to test is;
'type filename.txt > PRN'

Which will re-direct to your default printer.

This is just annother of those things that windows dosen't really have.

And makes me wonder if anyone is good enough at C/C++ to write a simple one
to python interface with.

--

David Broadwell






More information about the Python-list mailing list