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.
Unfortunately, activation email could not send to your email. Please try again.

Change position of merge field

Thread ID:





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

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 08:48 AM

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.

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.