Hi David,
Thanks for your inquiry. I am afraid, I was still unable to reproduce this issue on my side. I have used the following simple code:
Document
doc = new Document(@“C:\temp\Storyboard Template.docx”);
DataTable
dt = new DataTable(“Steps”);
dt.Columns.Add(new DataColumn(“StepStatus”, typeof(byte[])));
DataRow
dataRow = dt.NewRow();
MemoryStream stream = new MemoryStream();
using (Image img = Image.FromFile(@“C:</span>temp\FailedStatus_32.png”))
{
img.Save(stream, ImageFormat.Png);
}
dataRow[“StepStatus”] = stream.GetBuffer();
dt.Rows.Add(dataRow);
doc.MailMerge.ExecuteWithRegions(dt);
doc.Save(@“c:\temp\out.doc”);
doc.Save(@“c:\temp\out.pdf”);
Moreover, I have attached the PDF file i.e. generated on my side here for your reference. In case the problem still occurs, please share the complete code here.
Best Regards,