使用系统默认打开方式打开文件:
string AttchFileName = "C:\test.pdf";
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo(AttchFileName);
System.Diagnostics.Process Pro = System.Diagnostics.Process.Start(Info);
指定程序打开文件:
string AttchFileName = "C:\test.pdf";
Process.Start("AcroRd32.exe", AttchFileName);