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.

MergeImageFieldEventArgs.FieldValue is null while executing MailMerge

Thread ID:

Created:

Updated:

Platform:

Replies:

109060 May 28,2013 05:10 AM Jun 5,2013 08:29 AM ASP.NET MVC (Classic) 3
loading
Tags: DocIO
Decker
Asked On May 28, 2013 05:10 AM

Hello,

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

I was first using:

Doc.MailMerge.Execute(myDataTable);

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 05:10 AM

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.

Regards,
Prasanth.


MergeImageEvent_cb50335d.zip

Decker
Replied On June 4, 2013 05:55 AM

Hello,

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.


MergeImageEvent_twoway_3a109989.zip

Prasanth M B [Syncfusion]
Replied On June 5, 2013 08:29 AM

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.

Regards,
Prasanth.


CONFIRMATION

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.

;