I have created a doc file with picture placeholder in it. Now I need to insert an image into the placeholder. I'm using the following code.
using Microsoft.Office.Interop.Word;
using System.Drawing;
namespace ImagetoDoc
{
class Program
{
static void Main(string[] args)
{
Image im = Image.FromFile(@"C:\Users\BabyboB\Documents\google.png");
Application app= new Application();
Document doc = app.Documents.Open(@"C:\Users\BabyboB\Documents\testingdoc.docx");
doc.SelectContentControlsByTag("testing");
}
}
}
How to add a picture after identifying tag?