Hi
I want to add image to xml file and bind with Word template document and i use xsd
i tried to use the base64Binary in xsd and image mail merge field in the template
Document doc = new Document(HttpContext.Current.Server.MapPath("~/Data/SitePlanIndustrialDocument.doc"));
DataSet dataSet = GetDataSet();
doc.MailMerge.ExecuteWithRegions(dataSet);
private DataSet GetDataSet()
{
DataSet dataSet = new DataSet();
dataSet.ReadXml(HttpContext.Current.Server.MapPath("~/Data/SiteplanData.xml"));
return dataSet;
}
and give me this error
"Cannot load image from field ‘image’. The field contains data in unsupported
format. The URI prefix is not recognized.
"
format. The URI prefix is not recognized.
"
please give me the best solution for this
chk the attached file!
Regards
Omar