📅  最后修改于: 2022-03-11 14:51:44.887000             🧑  作者: Mango
Type officeType = Type.GetTypeFromProgID("Word.Application");
if (officeType == null)
{
// Word is not installed.
// Show message or alert that Word is not installed.
}
else
{
// Word is installed.
// Continue your work.
}