标签:io on 文件 问题 log cti ef new res
OpenFileDialog P_GetFile = new OpenFileDialog(); //创建打开文件对话框对象
DialogResult P_dr = P_GetFile.ShowDialog(); //显示打开文件对话框
object oMissing = System.Reflection.Missing.Value;
if (P_dr == DialogResult.OK) //是否单击确定
{
wordApp = new MSWord.Application();
wordApp.Visible = true;
object obj = (object)(P_GetFile.FileName);
wordApp.Documents.Open(ref obj,ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
}
标签:io on 文件 问题 log cti ef new res
原文地址:http://www.cnblogs.com/lemeng/p/4155509.html