Simple Text Processing Help

Tim Roberts timr at probo.com
Thu Oct 18 00:21:39 EDT 2007


patrick.waldo at gmail.com wrote:
>
>And now for something completely different...
>
>I've been reading up a bit about Python and Excel and I quickly told
>the program to output to Excel quite easily.  However, what if the
>input file were a Word document?  I can't seem to find much
>information about parsing Word files.  What could I add to make the
>same program work for a Word file?

Word files are not human-readable.  You parse them using
Dispatch("Word.Application"), just the way you wrote the Excel file.

I believe there are some third-party modules that will read a Word file a
little more directly.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list