Can I use Win32 COM to replace text inside a word document?

前端 未结 5 1533
醉话见心
醉话见心 2020-12-28 10:58

I have to perform a large number of replacements in some documents, and the thing is, I would like to be able to automate that task. Some of the documents contain common str

5条回答
  •  天涯浪人
    2020-12-28 11:52

    Checkout this link: http://python.net/crew/pirx/spam7/

    The links on the left side point to the documentation.

    You can generalize this using the object model, which is found here:

    http://msdn.microsoft.com/en-us/library/kw65a0we(VS.80).aspx

提交回复
热议问题