using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PrintSolution { public class CheckExcelInstalled { public static bool isExcelInstalled() { Type type = Type.GetTypeFromProgID("Excel.Application"); return type != null; } } }