ExcelDataReader Class
Inheritance: IExcelDataReader
Exemplo n.º 1
0
        public static IExcelDataReader CreateBinaryReader(Stream fileStream, ReadOption option)
        {
            IExcelDataReader reader = new ExcelBinaryReader(option);
            reader.Initialize(fileStream);

            return reader;
        }
Exemplo n.º 2
0
        public static IExcelDataReader CreateBinaryReader(Stream fileStream, ReadOption option)
        {
            IExcelDataReader reader = new ExcelBinaryReader(option);

            reader.Initialize(fileStream);

            return(reader);
        }
Exemplo n.º 3
0
        public static IExcelDataReader CreateReader(Stream fileStream, ExcelFileType excelFileType) {
            IExcelDataReader reader=null;

            switch (excelFileType) {
                case ExcelFileType.Binary:
                    reader=new ExcelBinaryReader();
                    reader.Initialize(fileStream);
                    break;
                case ExcelFileType.OpenXml:
                    reader=new ExcelOpenXmlReader();
                    reader.Initialize(fileStream);
                    break;
                default:
                    break;
            }

            return reader;
        }
Exemplo n.º 4
0
        public static IExcelDataReader CreateReader(Stream fileStream, ExcelFileType excelFileType)
        {
            IExcelDataReader reader = null;

            switch (excelFileType)
            {
            case ExcelFileType.Binary:
                reader = new ExcelBinaryReader();
                reader.Initialize(fileStream);
                break;

            case ExcelFileType.OpenXml:
                reader = new ExcelOpenXmlReader();
                reader.Initialize(fileStream);
                break;

            default:
                break;
            }

            return(reader);
        }