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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change position of merge field

Thread ID:





116045 Mar 24,2014 12:19 AM UTC Mar 26,2014 12:48 PM UTC ASP.NET Web Forms (Classic) 1
Tags: DocIO
IT Helpdesk
Asked On March 24, 2014 12:19 AM UTC

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.

Sathish K [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon