MSWord and Python

Gerson Kurz gerson.kurz at
Mon Feb 25 15:23:02 CET 2002

On Mon, 25 Feb 2002 15:49:28 +0100, Thomas Guettler
<st-newsgroups at> wrote:

>1. Where can I find a introduction on the net?

>2. Where can I find the documentation of methods that MSWord
>  exposes by the use of COM?

If you have the Jan 2002 MSDN, go to


If not, go to and work your way to

Office Solutions Development
-Microsoft Office
--Microsoft Office 2000
---Microsoft Office 2000 Language Reference
----Microsoft Word 2000 Reference
-----Microsoft Word Visual Basic Reference

>3. I want take a word template. Replace text in it, and save it again.
>  Has someone code examples fot something like this?
Hint: A word template is just an additional parameter for
word.Documents.Add() (I had to find that out myself, too). Be warned,
though, the Word API *sucks* (TM). I'll put up a more complete example
of how to generate word-from-html on my site in a few days, an
incomplete and buggy version is at

More information about the Python-list mailing list