运行word
try
{
string strFilePath = "C://Program Files//Microsoft Office//OFFICE11//WINWORD.EXE";
System.Diagnostics.Process.Start(strFilePath);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message, "系统提示");
}
运行excel
try
{
string strFilePath = "C://Program Files//Microsoft Office//OFFICE11//EXCEL.EXE";
System.Diagnostics.Process.Start(strFilePath);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "系统提示");
}
运行powerpoint
try
{
string strFilePath = "C://Program Files//Microsoft Office//OFFICE11//POWERPNT.EXE";
System.Diagnostics.Process.Start(strFilePath);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message, "系统提示");
}