Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: MS Word conversion

by gibsonca (Beadle)
on Oct 08, 2009 at 17:37 UTC ( #800048=note: print w/replies, xml ) Need Help??

in reply to Re: MS Word conversion
in thread MS Word conversion

The examples on the web for modifying an existing MS Word (2003 for me) either do little, or they error out. May I have an example where something is searched for in the document, and a sub paragraph or section added? Thanks for your time!

Replies are listed 'Best First'.
Re^3: MS Word conversion
by afoken (Abbot) on Oct 10, 2009 at 06:41 UTC

    Word 2003 has a "new" default file format, typically indicated by a filename extension of .docx instead of .doc. The docx format is a ZIP file containing ugly, generated XML and some other stuff. So, in theory, you just unzip the docx file, modify the XML, and zip it back to a new docx file. I think Microsoft has a description of the XML format they use, burried somewhere on their website.


    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://800048]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2017-12-16 02:36 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (447 votes). Check out past polls.