Question About Python & MS Word

This is the place for queries that don't fit in any of the other categories.

Question About Python & MS Word

Postby maestromandan » Wed Oct 16, 2013 1:58 pm

I'm trying to figure out whether Python is suitable for making a tool for moving text from one Word document to a new one automatically. I know Python can do all of the necessary functions, but it has to be able to read and write to .doc & .docx

Does anyone know if that's at all feasible? I've tried all the usual google avenues plus asking some friends, but they have been of little help. Attached is a rough flowchart outline.
Ingester diagram.jpg
Ingester diagram.jpg (178.41 KiB) Viewed 392 times
Posts: 1
Joined: Wed Oct 16, 2013 1:47 pm

Re: Question About Python & MS Word

Postby micseydel » Wed Oct 16, 2013 7:22 pm

I don't use Windows or MS products, but I would guess that you want to use win32com. I believe it gives you an API for interacting with MS Office. I could be wrong, but this might point you in the right direction.
Join the #python-forum IRC channel on for off-topic chat!

Please prefer not to PM members. The point of the forum is so that anyone can benefit. We don't want to help you over PMs/emails/Skype chats that others can't benefit from :)
User avatar
Posts: 2922
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 5 guests