THis is a problem in all programming languages on Windows because basically Windows treats documents to be printed as graphics, so you have to convert your document into something windows can print. Its possible but painful (unless you find a module somewhere, in which case let me know!)
I wrote a module that permits something like:
d = Win32PrinterDocument(printerName,spoolFile) f = file(inputfile) for line in f.readlines(): d.PrintLine(line.rstrip()) d.endDoc()
Output will go to the specified Windows printer. Unfortunately I'll need some time to make it ready for the public. Tell me if you are interested.
Luc _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor