We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Change position of merge field

Is there a way to reposition individual merge fields via the MailMerge.MergeField event handler?

I have a template document with various merge fields inside their own text boxes. Some merge records will have an image associated with them while others will not. During the merge, I want to shift some of my merge fields to the left to occupy the space where the image was, if the current record doesn't have an image associated with it.

Thank you.

1 Reply

SK Sathish K Syncfusion Team March 26, 2014 12:48 PM UTC

Hi Helpdesk,


Thank you for your interest in Syncfusion products.


We have prepared a sample to show how to remove the empty paragraph preservation during mail merge and to align the merged contents according to that. Please refer the attached sample and let us know if this helps you.


Please let us know if you have any other questions.




Attachment: GenerateWord_Web_50248bd0.zip

Live Chat Icon For mobile
Up arrow icon