Exemple #1
0
        public ITemplateSheetDataStore CreateTemplateSheetDataStore(string sheetName, int columnHeadersRowNumber)
        {
            var sheet         = _workbook.CreateSheet(sheetName);
            var templateSheet = new TemplateSheetDataStore(sheet, columnHeadersRowNumber);

            return(templateSheet);
        }
Exemple #2
0
        public ITemplateSheetDataStore GetTemplateSheetDataStore(string sheetName, int columnHeadersRowNumber)
        {
            var sheet = _workbook.GetSheet(sheetName);

            if (sheet == null)
            {
                return(null);
            }

            var templateSheet = new TemplateSheetDataStore(sheet, columnHeadersRowNumber);

            return(templateSheet);
        }
Exemple #3
0
        public ITemplateSheetDataStore GetTemplateSheetDataStore(int sheetIndex, int columnHeadersRowNumber)
        {
            var sheet = _workbook.GetSheetAt(sheetIndex);

            if (sheet == null)
            {
                return(null);
            }

            var templateSheet = new TemplateSheetDataStore(sheet, columnHeadersRowNumber);

            return(templateSheet);
        }