Hello
Thanks for your inquiry. Please see the following link to learn how to insert an image form a database during MailMerge:
Hope this helps.
Best regards,
"Cannot use Photo field in Aspose.Word demo because it contains an OLE object but we need just an image hence this field."
Hi
Thanks for your request. Unfortunately, it is not quite clear for me what your problem is. Could you please describe your issue more specifically and provide sample code here for testing? I will check the issue on my side and provide you more information.
Best regards,
Hi there,
Thanks for your inquiry.
I'm afraid it's still not quite clear what the issue is. Could you please attach your image or document that are having troubles with?
Thanks,
word document need to insert picture, i use the example as you told.
Hello
Thank you for additional information. In your case you should use the following IF construction:
{ IF { OPERATION_TYPE_PASSENGERS \* MERGEFORMAT } = "y" "■" "□"} \* MERGEFORMAT }
And this simple code:
Document srcDoc = new Document("C:\\Temp\\in.docx");
srcDoc.MailMerge.Execute(new string[] {"OPERATION_TYPE_PASSENGERS"}, new string[] {"y"});
srcDoc.Save("C:\\Temp\\out.docx");
Please see the attached input and output documents.
Best regards,