From: Wilson Bilkovich Date: 2005-12-22T01:00:48+09:00 Subject: Re: Merging two Word documents with Ruby? On 12/21/05, Denver Mike wrote: > > > - What do you mean by "Merge"?.. Word documents have structure and the > > interleaving of lines or words would appear to make little sense. > > Thanks for your thoughts on this Graham. By "merge", I meant appending > one Word document to the end of another, but to make things more > complicated, I need to add text into the headings across the entire > document. > This can actually be extremely complex, because a named style (such as 'Body', 'Normal', or 'Heading 1') can (and will) have different properties (fonts, colors, sizes, margins, encoding, etc) in each of the two documents. You will need to rename every style and style reference in the second document in order to prevent the two from colliding.