We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

RE: Merging two documents

Thread ID:





53080 Dec 7,2006 07:14 PM UTC Oct 19,2011 07:18 AM UTC ASP.NET Web Forms (Classic) 3
Tags: DocIO
Kalpana Rajan
Asked On December 7, 2006 07:14 PM UTC

Hi All

I am new to Syncfusion. I wanted to know how I can append two documents? Doc 2's contents into Doc 1.


Dhivya K [Syncfusion]
Replied On December 8, 2006 03:59 AM UTC

Hi Kalpana,

Thank you for your interest in Essential DocIO.
We do have options for cloning and merging document contents as follows:


// Cloning all the sections one by one and merging it.
foreach ( IWSection sec in doc2.Sections )
doc1.Sections.Add( sec.Clone( doc2 ) );

Could you please refer to the sample at following url after installing Essential DocIO?
C:\Program Files\Syncfusion\Essential Studio\\Windows\DocIO.Windows\Samples\Advanced Features\CloningandMerging

Please let me know if you have any queries.


Administrator [Syncfusion]
Replied On October 13, 2011 04:13 PM UTC


I'm wondering if this is still the recommended way of merging two different documents. Or is there another method that does not involve cloning each section.


Poornima R [Syncfusion]
Replied On October 19, 2011 07:18 AM UTC

Hi Kalpana,

Thank you for your update.

Currently DocIO provide support for cloning and merging the entire content from source document (doc2.doc) to the destination document (doc1.doc) using ImportContent() method instead of cloning and merging each section. Please refer the code snippet from below illustrating the same. Try using the below code snippet and let us know if this helps you.


Please refer the below UG link for more information

Please let us know if you have any questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon