1、引用Microsoft.Office.Interop.Word.dll
用的
2、代码:
private string insertpic()
{
string bookMark_text = "盖章";
object missing = System.Reflection.Missing.Value;
object Range = System.Reflection.Missing.Value;
object saveWithDocument = true;
Word.Application oWord;
oWord = new Word.ApplicationClass();
oWord.Visible = false;
object fielname = "E:\\667.docx";
object readOnly = false;
var doc = oWord.Documents.Open(ref fielname, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
oWord.Visible = false;
if (