示例#1
0
        public IdFinder(Person p)
        {
            ApplicationCreator applicationCreator = new ApplicationCreator();

            outlookApp = applicationCreator.GetOutlookApplication();

            globalAddressList = outlookApp.Session.GetGlobalAddressList();
            person            = p;
        }
示例#2
0
        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);
        }