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) { this._name = name; this.Document = parentDoc; this.Rows = new ExcelRows(this); this.Columns = new ExcelColumns(this); this.Cells = new ExcelCells(this); this._sheetCache = new WorksheetCache(this); this._sheetCache.Load(); }
internal ExcelWorksheets(ExcelDocument parent) { this.Document = parent; }
internal ExcelWorkbook(ExcelDocument parent) { this.Document = parent; this.Worksheets = new ExcelWorksheets(parent); }