打开word

  Microsoft.Office.Interop.Word.Application appClass = new Microsoft.Office.Interop.Word.Application();
            appClass.Visible = true;

            Object missing = System.Reflection.Missing.Value;

            Microsoft.Office.Interop.Word.Document wordDoc = new Microsoft.Office.Interop.Word.Document();

            object fileName = path2;
            wordDoc = appClass.Documents.Open(ref fileName,
            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, ref missing, ref missing);

posted @ 2014-10-25 15:51  开开123  阅读(144)  评论(0编辑  收藏  举报