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

Free Support Forum - aspose.com

Combine Multiple Word Documents

Hi,


Just wondered what was the best method for combining several Word documents into 1which have been created by a mail merge routine. The idea is the client just wants to print out 1 large document.

Any code example / method appreciated.

Thanks

Mark

Hi

Thanks for your request. Please see the following link to learn how to merge documents: http://www.aspose.com/documentation/java-components/aspose.words-for-java/joining-and-appending-documents.html

Also, please see the code example:

Document dstDoc = new Document("dst.doc");

Document srcDoc = new Document("src.doc");

// Insert srcDoc to dstDoc

dstDoc.appendDocument(srcDoc, ImportFormatMode.KEEP_SOURCE_FORMATTING);

dstDoc.save("out.doc");

Hope this helps,

Best regards,

That was quick thanks - unfortunately thats .net code - anything for Java?


Mark

Apologies - found the same method for Java - thanks.


Mark

Hello,

Thank you for your request. Java version of our product is autoported .Net version. So all things which you can do in NET version you can achieve in Java version of Aspose.Words.

Best regards,