Beispiel #1
0
        private static ExcelDocument CreateBlankWorkbook(SpreadsheetDocument doc)
        {
            doc.AddWorkbookPart();
            doc.WorkbookPart.Workbook = new Workbook(); // create the worksheet
            doc.WorkbookPart.Workbook.AppendChild(new Sheets());
            ExcelDocument xldoc = new ExcelDocument(doc);

            return(xldoc);
        }
        internal ExcelWorksheet(string name, ExcelDocument parentDoc)
        {
            _name         = name;
            this.Document = parentDoc;
            this.Rows     = new ExcelRows(this);
            this.Columns  = new ExcelColumns(this);
            this.Cells    = new ExcelCells(this);

            _sheetCache = new WorksheetCache(this);
            _sheetCache.Load();
        }
 internal ExcelWorksheets(ExcelDocument parent)
 {
     this.Document = parent;
 }