We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Merge 2 word documents

Can Aspose word be used to merge 2 word documents into one? If it can could you send me the link to the programers guide that shows how? All I can find is the mail merge. Thanks


This message was posted using Aspose.Live 2 Forum

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please see the following link to learn how to merge documents:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/howto-join-and-append-documents.html


Also, please see the code example:

Document dstDoc = new Document(@"Test\dst.doc");

Document srcDoc = new Document(@"Test\src.doc");

// Insert srcDoc to dstDoc

dstDoc.AppendDocument(srcDoc, ImportFormatMode.KeepSourceFormatting);

dstDoc.Save(@"Test\out.doc");

Please let me know in case of any issues. I will be glad to help you.

Best regards,