Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Merging several documents .docx with Open XML

From: "Joe Fawcett" <joefawcett@---------.------>
To: 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 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent