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.
Unfortunately, activation email could not send to your email. Please try again.

RE: Merging two documents

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi All

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

Thanks
Kalpana

Dhivya K [Syncfusion]
Replied On December 7, 2006 10:59 PM

Hi Kalpana,

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

C#:

// 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\4.4.0.51\Windows\DocIO.Windows\Samples\Advanced Features\CloningandMerging

Please let me know if you have any queries.

Regards,
Dhivya.

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

Hi,

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.

Thanks!


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

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.

Code:
doc1.ImportContent(doc2);

Please refer the below UG link for more information
http://help.syncfusion.com/ug_93/Reporting/DocIO/ASP.NET/default.htm?turl=Documents%2F431cloningandmerging.htm

Please let us know if you have any questions.

Regards,
Poornima




CONFIRMATION

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.

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.

;