I am using docio.net.core vs 18.3.0.48 to convert xml files from word to *.doc format.
However, I have an anomaly when I include a table cell with an image inside in document header.
In that case the image is not rendered in the resulting file.
I have attached examples and the code I am using:
private static WordDocument FromXMLtoDOC(String strXML)
{
WordDocument wordDoc = new WordDocument();
try
{
wordDoc.UpdateStylesOnOpen = true;
wordDoc.Open(strXML.ToStream(), FormatType.Doc);
//TEST->Exit to ----------------- file
Stream file3 = File.Create("outputdoc.doc");
file3.Position = 0;
wordDoc.Save(file3, OutputFormat);
file3.Close();
return wordDoc;
}
catch (Exception e) { return null; }
}
Attachment:
SAMPLE_56165524.7z