Mon Oct 29, 2012 10:55 am
Hi,
Thanks for your inquiry. We have attached a demo for you.
In the demo:
1. Define some mailmerge field for image, for example:
Image:Photo2. In you data for merging, there is the image name and path for the MailMergeField, please see the element Photo in the Orders.xml file.
3. Load the image during maile merging:
- Code: Select all
document.MailMerge.MergeImageField += (obj, field) =>
{
string filePath = field.FieldValue as string;
if (!String.IsNullOrEmpty(filePath))
{
field.Image = Image.FromFile(String.Format(@"..\..\{0}", filePath));
}
};
If you still have any problem, please tell us.
Login to view the files attached to this post.
Harry
Technical Support / Developer,
e-iceblue Support Team