How to fix anything

Search for :



advanced c# coding check if office products exists

Type outlookType = Type.GetTypeFromProgID("Outlook.Application");
Type excelType = Type.GetTypeFromProgID("Excel.Application");
Type powerpointType = Type.GetTypeFromProgID("Powerpoint.Application");
Type wordType = Type.GetTypeFromProgID("Word.Application");


if (outlookType == null)
{
""" // outlook is not installed
}
" else
" {
""" // outlook is installed
" }


    IP