Example #1
0
        public ExcelBuilder(IExcelStylesheetProvider stylesheetProvider,
                            IExcelCellFactory excelCellFactory)
        {
            _stylesheetProvider    = stylesheetProvider;
            _excelCellFactory      = excelCellFactory;
            _worksheetPartBuilders = new Dictionary <string, ExcelWorksheetPartBuilder>();
            _buildingIsFinished    = false;

            _memoryStream = new MemoryStream();
            _document     = SpreadsheetDocument.Create(_memoryStream, SpreadsheetDocumentType.Workbook);
            _document.AddWorkbookPart();
        }
Example #2
0
 public ExcelCellFactory(IExcelStylesheetProvider stylesheetProvider)
 {
     _stylesheetProvider = stylesheetProvider;
 }