public static bool ExcelPresent(NCCReporter.LMLoggers.LognLM optlog = null) { try { //Excel.Application nitz; //nitz = new Excel.Application(); return true; } catch (Exception e) { if (optlog != null) optlog.TraceException(e); } return false; }