winfrom窗体嵌入word: 下载
这个会释放所有程序打开的没有界面的进程
Process MyProcess = new Process();
Process[] wordProcess = Process.GetProcessesByName("WINWORD");
try
{
foreach (Process pro in wordProcess)
{
if (!pro.CloseMainWindow())
{
pro.Kill();
}
}
}
catch (Exception ex)
{
ex.ToString();
}