Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Merging several documents .docx with Open XML [Thread Next] Re: Merging several documents .docx with Open XMLTo: NULL Date: 1/16/2009 9:49:00 AM "Pedro Hueso" <pedroh@c...> wrote in message news:OpWfdWydJHA.1336@T...... > Hello, > > I have several files separated of Microsoft Word 2007 .docx created > > I am trying to create a program with C# and Open XML that combines or adds > all these documents of them 1 .DOCX file. > > Example. I have for example. Doc1.docx, Doc2.docx, Doc3.docx, Doc4.docx, > Doc5.docx, etc and I want to combine or append them into just one > MAIN.DOCX. (Main.docx = Doc1.docx + Doc2.docx + Doc3.docx + ...) > > Thanks > > I've done this in the past with previous versions of Word documents but, in my opinion, it's not an XML related task but rather one suited to manipulating the Office Object model. I opened one document and added the others in as sub-documents and then removed the link, effectively copying and pasting multiple documents into one master. (Compare for example how you'd approach this using a binary encoded Word document.) You maybe able to use XML methods or the System.IO.Packaging classes if the documents are fairly simple. There's a microsoft.public.office.xml group that may have other ideas. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
