Using several templates in one document


Hello everyone,

First of all, I would like to apologize for my english, because I'm french developper.

I'd like to know if aspose.words can process one document using several templates. For example : I have 5 customers in my database and for each I know if I should send a postal mail or a fax. So I would like to generate in one document (.doc for example), 3 letters and 2 faxs.

Is that possible with this component ?

Thanks for your answers.



Hello Lyly,

Thank you for your interest in Aspose.Words.

Yes, you can mail merge several templates with different data and then combine the resulting documents and save it to file as one document.

Hope this answers your question.

If it does not or if you need more detailed information or demo code please let me know. I will be happy to assist you with whatever I can.

Best regards,


Thanks a lot for your message,

A sample of demo code about using several templates would be very great !



Dear Lyly,

Please find the sample project attached. Please also check our other source code demo projects which are included into our evaluation pack.

Best regards,


Thanks a lot :slight_smile: