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.
Attachments
Ingester diagram.jpg
Ingester diagram.jpg (178.41 KiB) Viewed 100 times
maestromandan
 
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 irc.freenode.net!
User avatar
micseydel
 
Posts: 1116
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 2 guests