Hi Paul,Thank you for contacting Syncfusion support.Currently Document Editor doesn’t support Mail Merge. The Mail Merge support will be included in our 2019 volume 2 release (17.2) which will be rolled out at the end of June 2019 tentatively.However, you can achieve mail merge with the help of DocIO (a server library) through a web service. So kindly share your requirement on this to provide you the prompt solution at the earliest.RegardsPrakash Kumar
Faisal
Iqbal
Senior
Software Engineer
Constellation
HomeBuilder Systems
Email: fiqbal@constellationhb.com
Web: www.constellationhb.com
container.documentEditor.editor.insertField('MERGEFIELD '+text+' \\* MERGEFORMAT', '{{'+text+'}}'); |
could urgently need help
this my script
documenteditor = document.getElementById('container').ej2_instances[0];
documenteditor.editor.insertField('MERGEFIELD ' + fieldName + ' \\* MERGEFORMAT');
but the script crashes upon inserting the mergefield
thanks a lot
If you were using document editor container, set document editor like below:
var documenteditor = document.getElementById("container").ej2_instances[0].documentEditor;
Else set document editor like below:
var documenteditor = document.getElementById("container").ej2_instances[0];
//Send field name in parameter
documenteditor.editor.insertField(fieldCode, '«' + fieldName + '»'); |