public void WriteTo(MSExcel2003XmlFile xmlFile) { int tableIndex = xmlFile.AddWorksheet(GetSheetName()); columnLayout.WriteTaskHeaders(xmlFile, tableIndex, isActive); foreach (Task task in Tasks) { columnLayout.WriteTask(xmlFile, tableIndex, task, isActive); } }
public void WriteTo(ExcelPackage package) { ExcelWorksheet worksheet = ExcelPackageHelper.AddWorksheet(package, GetSheetName()); ColumnLayout.WriteTaskHeaders(worksheet, isActive); foreach (Task task in Tasks) { columnLayout.WriteTask(worksheet, task, isActive); } }