[Tutor] Edit a Word document programmatically

Brian C. Lane bcl at brianlane.com
Tue Oct 14 16:22:56 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

URBAN LANDREMAN wrote:
> Good morning,
> 
> I'm trying to write some Python code to programmatically do a Find and
> Replace of a string within a Microsoft Word document.
> Any suggestions on where I could look to find how to do such a function?
> 

Take a look at the win32com module. Here's a chapter on it from O'Reilly

http://oreilly.com/catalog/pythonwin32/chapter/ch12.html#49339

Brian

- --
- ---[Office 70.5F]--[Outside 46.5F]--[Server 104.9F]--[Coaster 71.0F]---
- ---[       WSF KITSAP (366772980) @ 47 34.7811 -122 27.7554       ]---
Software, Linux, Microcontrollers             http://www.brianlane.com
AIS Parser SDK                                http://www.aisparser.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Remember Lexington Green!

iD8DBQFI9KtAIftj/pcSws0RAk9EAJ4/Dysv4TfAdyo+g5t2QLwvLMQR4gCfZ5l0
ic/hQOAv4psFxKN2ErMpEDQ=
=8tz8
-----END PGP SIGNATURE-----


More information about the Tutor mailing list