Accessing Microsoft Word from Python

Mickel Grönroos mickel at csc.fi
Fri Jan 23 02:10:26 EST 2004


Hi!

I'm fiddling with Python for Windows (normally using Linux) and as a part
of that I want to try to make a simple word frequency list generator to be
used in conjunction with Microsoft Word. Does anybody have any good
pointers on where I can find information about accessing Word-documents
(or other Microsoft Office applications) from Python? To be more specific,
I want to be able to:

- get the text content of the full Word document
- define a callback in Python that is called every time a user enters a
character into the text of a Word document
- get the last two graphical word tokens before the current position of
the insertion cursor in the text of the Word document.

Cheers!

/Mickel

--
Mickel Grönroos, application specialist, linguistics, Research support, CSC
PL 405 (Tekniikantie 15 a D), 02101 Espoo, Finland, phone +358-9-4572237
CSC is the Finnish IT center for science, www.csc.fi




More information about the Python-list mailing list