我正在尝试使用超链接插入图像以下是我的代码
Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.Application();
WordApp.Documents.Add();
WordApp.Visible = true;
Microsoft.Office.Interop.Word.Document doc = WordApp.ActiveDocument;
Microsoft.Office.Interop.Word.Range drange = doc.Range();
Microsoft.Office.Interop.Word.InlineShape picture =
drange.InlineShapes.AddPicture("c:\\logo.png", Type.Missing, Type.Missing, Type.Missing);
// noew add the hyperlink to object of inlineshape
drange.Hyperlinks.Add(picture, "http:\\www.google.com", Type.Missing, Type.Missing, Type.Missing, Type.Missing);