Beispiel #1
0
        public static List <PersonaExcel> CargarLista()
        {
            try
            {
                ExcelBusiness       excelBusiness = new ExcelBusiness("C:\\Leo\\Dropbox\\Desarrollos\\Librerias\\ImportarExcel\\Pruebas\\BASE DE DATOS - CUMPLEAÑOS (ACTUAL).xlsx");
                List <PersonaExcel> lista         = (List <PersonaExcel>)excelBusiness.RetornarRowExcel("BASE TOTAL DE CLIENTES CUMPLE");

                foreach (PersonaExcel persona in lista)
                {
                    string nombre = persona.nombreCompleto;
                }

                return(lista);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #2
0
        public static List <PersonaExcelEntity> CargarLista()
        {
            try
            {
                string                    path          = "C:\\Leo\\Dropbox\\Desarrollos\\LandManagement\\Documentos\\Archivos inmobiliaria\\TestImport\\BASE DE DATOS - CUMPLEAÑOS (ACTUAL)Import.xlsx";
                string                    pathOld       = "C:\\Leo\\Dropbox\\Desarrollos\\Librerias\\ImportarExcel\\Pruebas\\BASE DE DATOS - CUMPLEAÑOS (ACTUAL).xlsx";
                ExcelBusiness             excelBusiness = new ExcelBusiness(path);
                List <PersonaExcelEntity> lista         = (List <PersonaExcelEntity>)excelBusiness.RetornarRowExcel("BASE TOTAL DE CLIENTES CUMPLE");

                foreach (PersonaExcelEntity persona in lista)
                {
                    string nombre = persona.nombreCompleto;
                }

                return(lista);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }