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

MergeImageFieldEventArgs.FieldValue is null while executing MailMerge

Thread ID:





109060 May 28,2013 09:10 AM UTC Jun 5,2013 12:29 PM UTC ASP.NET MVC (Classic) 3
Tags: DocIO
Asked On May 28, 2013 09:10 AM UTC


I’m using the Mail merge engine to generate a document from a docx template. 

I was first using:


And everything was working fine.

But since I only have one row in my table, I used this method:

Doc.MailMerge.Execute(myFieldNames, myFieldValues);

Now in my MergeImageFieldEventHandler, my MergeImageFieldEventArgs FiledValues are null for the Image FieldName.

Is MergeImageFieldEventHandler not entirely compatible with this execution of MailMerge ?

Prasanth M B [Syncfusion]
Replied On June 3, 2013 09:10 AM UTC

Hi Decker,

Thank you for using Syncfusion products.

We are unable to reproduce the mentioned issue. We have prepared a sample for merging the image using MergeImageFieldEventArgs. Kindly find the sample in the given attachment and please let us know if this helps you. 

If the reported issue is reproduced on your end, kindly provide us the sample, so that we can further analyze and update you appropriate details.

Please let us know if you have any questions.



Replied On June 4, 2013 09:55 AM UTC


Thank you for your answer, I made a sample exposing my problem:

I took yours and add a field in the form letting you chose between MailMErge using FieldNames & FieldValues or using a DataTable.

As you will see, when using a DataTable the MergeImageFieldEventHandler is fine, but when using FieldNames and FieldValue the MergeImageFieldEventHandler throw an error.

This is due to the fact that the MergeImageFieldEventArgs.FiledValue is null when executing a MailMerge with FieldNames and FiledValues, but i don't understand why.

Thank you for your time.


Prasanth M B [Syncfusion]
Replied On June 5, 2013 12:29 PM UTC

Hi Decker,

Thank you for your update.

We are able to reproduce the mentioned FieldValue null exception while Mail merging with image. Could you please report this issue through Direct Trac Developer Support System (https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.



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