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");
spire.doc
またはMicrosoft.Office.Interop.Word
ライブラリを使用して、Word テンプレートの特定の位置に画像とテキストを挿入するにはどうすればよいですか?
または、このリンクと同様に、画像をワールド テンプレートの特定の位置に挿入します。