How can I insert image and text into a Microsoft Word template?

Hossein Hagh picture Hossein Hagh · Nov 13, 2013 · Viewed 13.4k times · Source

Below code with spire.doc

var doc = new Document();
doc.LoadFromFile(@"E:\test.docx", FileFormat.Doc);
var image = Image.FromFile(@"E:\nice.jpg");
var picture1 = doc.Sections[0].Paragraphs[0].AppendPicture(image);
picture1.VerticalAlignment = ShapeVerticalAlignment.Top;
picture1.HorizontalAlignment = ShapeHorizontalAlignment.Left;
picture1.TextWrappingStyle = TextWrappingStyle.Square;
doc.SaveToFile(@"..\..\result.doc", FileFormat.Doc);
System.Diagnostics.Process.Start(@"..\..\result.doc");

How can I insert image and text into certain positions in a Word template using either the spire.doc or the Microsoft.Office.Interop.Word libraries?

Or similar this link with insert image to certain position in world template.