運行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, "系統提示");
}