Ejemplo n.º 1
0
        public static string ObtenerValorExcel(int index, DTFilasExcel filas)
        {
            string Valor = string.Empty;

            Valor = (from dt in filas.cells
                     where dt.index == index
                     select dt.value != null ? dt.value.ToString() : string.Empty).FirstOrDefault();
            return(string.IsNullOrEmpty(Valor) ? string.Empty : Valor.Replace(Constantes.ValidacionEncabezados, string.Empty).Trim().ToString());
        }
Ejemplo n.º 2
0
        private string ObtenerValorExcel(int index, DTFilasExcel filas)
        {
            string Valor = string.Empty;

            Valor = (from dt in filas.cells
                     where dt.index == index
                     select dt.value != null ? dt.value.ToString() : string.Empty).FirstOrDefault();
            return(string.IsNullOrEmpty(Valor) ? string.Empty : Valor);
        }