[Tutor] Printing

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Sat Dec 24 20:32:39 CET 2005



> I have downloaded win32, win32com, Preppy and PIL.  I have had a go at
> using them but can't get them to work.  At the moment I can't even print
> the text file.
>
> Is there a good helpguide/FAQ page which deals with printing text files
> or is there simple code which prints a text file?

Hi John,


Let's see... ok, found it!  Tim Golden has written a small introduction to
printing:

    http://tgolden.sc.sabren.com/python/win32_how_do_i/print.html

His recommendation is to use the ShellExecute function in win32api to send
off documents to your printer.



Best of wishes!



More information about the Tutor mailing list