Append Documents

Contents
[ ]

To append documents using Aspose.Words, simply invoke the AppendDocument method of the Document class and specify the second document to append it at the end of the first one.

The following code example shows how to append a document:

Document doc1 = new Document(dataDir + "doc1.doc");
Document doc2 = new Document(dataDir + "doc2.doc");

doc1.appendDocument(doc2, ImportFormatMode.KEEP_SOURCE_FORMATTING);

See also: