|
[Quoted Text] > I am experimenting with an app which is to process large Word doc's, and > needs the dictionary objects available in Python (and C++).Jezebiel wrote:
Don't know much about Python. A Google search reveals the following useful link http://www.bstpierre.org/Projects/msword.py which may be helpful.
> Thanks much. I wonder if both the following skeleton code ideas are > possible; and if there is a large overhead for each access to Word in the > first one which gets one word at a time.
Doing it from inside Word might work. Alternative would be to open the word document from inside python, and read through the activedocument structure, pulling in words and then closing the document. Generally you'll want to read up on the stuff at the msdn site and the like which has examples in C# and VBA, and convert these to python. All you need are the type library definitions in Word.
Oliver Townshend
|