[Tutor] Output to a printer

Alan Gauld alan.gauld at freenet.co.uk
Tue Dec 28 23:09:15 CET 2004


Hi Luc,

I'm interested.
Does it handle more than plain text - although even that would be
good!

> 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.

I was going to try doing something similar (if I ever get time!)
using the WSH objects. What approach are you taking? It looks
(from the EndDoc reference) that you are using the native GDI?

Alan G.



More information about the Tutor mailing list