Is it possible to mail merge using multiple datasources, for example invoice word template having 3 region and each region needs to populate from respective table.
Can you please provide us solution using mailmerge or find & replace or using document variable.
Regards
3 Answers, 1 is accepted
0
Petya
Telerik team
answered on 18 Mar 2013, 05:22 PM
Hello,
When you need data to populate a "template" document, usually document variables or mail merge are used, the main difference being that document variables can only have one value, so you cannot generate multiple entries.
That said, in case you only want to set the values of your fields once, I suggest you refer to this help article. It demonstrates how to create and insert a document variable to a document.
In case you are trying to achieve the other scenario, please refer to this article, as well as this demo. Generally, the item's source of a document can only be one, so you'd have to create an appropriate for your application's logic class that can hold all properties. You can try using ExpandoObject in order to create the objects on the fly if needed.
I hope this helps! Let us know if you need further assistance.
Kind regards,
Petya the Telerik team
Master-detail mail merge is a feature that is in our to-do list, but is currently not scheduled. Advanced mail merge-related functionalities have been discussed in several forums, for example here where you can also find a demo of custom merge fields.
Let us know if you have any concrete questions.
All the best,
Petya the Telerik team