Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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!


Comment on Re^2: MS Word conversion
Re^3: MS Word conversion
by afoken (Parson) 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.

    Alexander

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://800048]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-08-28 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (255 votes), past polls