用电脑的程式直接打开文件:
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
//设置外部程序名 Info.FileName = "新建 Microsoft Word 文档.doc";
//设置外部程序工作目录为 Info.WorkingDirectory = @"C:\Users\Administrator\Desktop";
//最小化方式启动 Info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;
//声明一个程序类 System.Diagnostics.Process Proc;
try { Proc = System.Diagnostics.Process.Start(Info); System.Threading.Thread.Sleep(500); } catch (System.ComponentModel.Win32Exception) {
return; }