Type type; object excel; object version;type = Type.GetTypeFromProgID( " Excel.Application " ); if (type == null )