Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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]
[Discipulus]: ah aha ah..

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-06-18 09:42 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.