Free Support Forum - aspose.com

Need to add content of multiple word docs to one document

Hi All,

My requirement is like,

Need to generate letters for various companies by using mailmerge, which I successfully through and saved on the server itself.

Now I need to print all the pages content at one click. For that what we are thinking is, add content of all letters to one word document and print it.

So I need some code from you guys, like to add multiple word document contents to one document using aspose.

Looking forward for your quick reply.

Thanks & Regards

Madhu Kiran K

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

Thanks for your request. If you have lot of Word documents you can load each of them to documents and then concatenate these documents using appendDocument method:

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

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

Best regards,

Hi Andrey,

Thanks for your immediate response.

I need one more help from you like, how to add one document to another document by using documentbuilder as I need to format the paragraphs of the source document.

Looking forward for your quick reply.

Thanks

Madhu Kiran

Hi

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

Thanks for your inquiry. There is no way to insert one document into another using DocumentBuilder. But I think, in your case, you can try using an approach suggested here:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-insert-a-document-into-another-document.html

Hope this helps.

Best regards.

Hi Madhu,

Here is the same article Alexey posted above in Java for you

http://www.aspose.com/documentation/java-components/aspose.words-for-java/howto-insert-a-document-into-another-document.html

Thanks,