public IdFinder(Person p) { ApplicationCreator applicationCreator = new ApplicationCreator(); outlookApp = applicationCreator.GetOutlookApplication(); globalAddressList = outlookApp.Session.GetGlobalAddressList(); person = p; }
private Excel.Range GetUsedRange(string path) { ApplicationCreator applicationCreator = new ApplicationCreator(); excelApp = applicationCreator.GetExcelApplication(); Excel.Workbook excelWorkbook = excelApp.Workbooks.Open(path); Excel.Worksheet excelWorksheet = excelWorkbook.Sheets[1]; Excel.Range excelRange = excelWorksheet.UsedRange; return(excelRange); }