Text printing under Windows

Gabriele Favalessa ego at macondo.visconti.home
Thu Mar 22 15:00:29 CET 2001


how do I print using a dot matrix printer in text mode under Windows
98?  I have both a local and a remote printer.

I use python 2.0 and wxPython 2.2.5.  The latter seems to support
printing only in bitmap mode.

My knowledge of win32 APIs is poor, I'm looking for a simple
open/write/close API.  Something similar to:

   printer = os.popen ("lpr -Pprinter1")
   printer.write ("Hello world!\n")
   printer.close ()

that works fine under unix.

Thanks in advance.


More information about the Python-list mailing list