When you have a jpeg image in the template, the output doesn’t render it properly. I am attaching the source and output files. Here is the code I used.
using(FileStream sourceStream = File.OpenRead(@"C:\RocketMatter\scripts\Logo_Template.docx"))
{
using(FileStream outputStream = File.Create(@"C:\RocketMatter\scripts\Logo_Template_Output.doc"))
{
Document document = new Document(sourceStream);
document.Save(outputStream, SaveFormat.Doc);
}
}
Thanks,
Gaurav