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

Xamarin DOCIO

Thread ID:





128414 Jan 19,2017 08:28 PM UTC Feb 6,2017 05:36 AM UTC Xamarin.Forms 5
Tags: DocIO
Louai Dakhel
Asked On January 19, 2017 08:28 PM UTC


can I merge from datasource inclusive images, it will better when you have an example.


Sethumanikkam Yogendran [Syncfusion]
Replied On January 20, 2017 06:50 AM UTC

Hi Louai,

Thank you for contacting Syncfusion support.

Essential DocIO provides support to insert an image to the Word document using Mail merge. You can achieve this by creating a template (Input) Word document which contains the merge field with prefix “Image:” and perform Mail merge using Essential DocIO. It will populate the retrieved data (image from datasource) in the corresponding merge fields during Mail merge.

The following screenshot shows how to insert a merge filed with prefix “Image:” in the Word document by using the Microsoft Word.

We have prepared a sample to meet your requirement. Please find the sample from the following link, and let us know if it helps you.

Sample Link:

Note: Please find the input template Word document and image from “Data” folder inside the Getting Started application.

Please find the following UG documentation link on MergeImageField event.
UG Documentation Link:

If the above-mentioned solution does not resolve your problem then kindly provide the following details to reproduce the mentioned issue at our end which will helpful to provide you the solution at the earliest.
     1. Working scenario along with the sample or complete code snippet used at your end.
     2. Input template document (Word document) used.
     3. Data set used for Mail merge process.
     4. Screenshot of your output or expected output document.

Please let us know if you have any other questions.


Louai Dakhel
Replied On February 2, 2017 03:01 PM UTC

Hi Sethumanikkam,

I have made the following like i have wrote in attached file but i got a wrong result, what was wrong I did???

Attachment: MailMergeDataSet_dataSet_34d83dca.rar

Sethumanikkam Yogendran [Syncfusion]
Replied On February 3, 2017 06:16 AM UTC

Hi Louai,

Thank you for your update.

On further analyzing with provided Word document, we suspect your requirement is to execute Mail merge in nested group but the input template which you have used do not having nested group for the provided DataTable values.

We have modified your input template Word document to meet your requirement with below code snippet modifications. Please find the input template from here, and let us know if this helps you.

Code snippet:
WordDocument wordDocument = new WordDocument("Template.docx");
MailMergeDataSet dataSet = new MailMergeDataSet();
MailMergeDataTable dataTable = new MailMergeDataTable("Persons", GetPerson());
dataTable = new MailMergeDataTable("Languages", GetLanguage());
List<DictionaryEntry> commands = new List<DictionaryEntry>();
DictionaryEntry entry = new DictionaryEntry("Persons", string.Empty);
entry = new DictionaryEntry("Languages", string.Empty);
wordDocument.MailMerge.ExecuteNestedGroup(dataSet, commands);

If we misunderstand any of your requirement, then kindly update us requirement with sample for clear description along with Input document and screenshot/output Word document of the expected result which will helpful to provide you the appropriate solution at the earliest.

Please let us know if you have any other questions.


Louai Dakhel
Replied On February 3, 2017 06:38 AM UTC

Thank you very much, it work great

Thanks a lot

Ranjani Prabhakaran [Syncfusion]
Replied On February 6, 2017 05:36 AM UTC

Hi Louai, 
We are glad to know that the given solution work. Please reach us if you need any further assistance. 


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