예제 #1
0
 public void CopyUpdatedCells(IWorkbook workbook)
 {
     String[] sheetNames = new String[_sharedSheetsByName.Count];
     _sharedSheetsByName.Keys.CopyTo(sheetNames, 0);
     foreach (String sheetName in sheetNames)
     {
         ForkedEvaluationSheet sheet = _sharedSheetsByName[(sheetName)];
         sheet.CopyUpdatedCells(workbook.GetSheet(sheetName));
     }
 }
예제 #2
0
 public void CopyUpdatedCells(IWorkbook workbook)
 {
     String[] sheetNames = new String[_sharedSheetsByName.Count];
     _sharedSheetsByName.Keys.CopyTo(sheetNames, 0);
     OrderedSheet[] oss = new OrderedSheet[sheetNames.Length];
     for (int i = 0; i < sheetNames.Length; i++)
     {
         String sheetName = sheetNames[i];
         oss[i] = new OrderedSheet(sheetName, _masterBook.GetSheetIndex(sheetName));
     }
     for (int i = 0; i < oss.Length; i++)
     {
         String sheetName            = oss[i].GetSheetName();
         ForkedEvaluationSheet sheet = _sharedSheetsByName[(sheetName)];
         sheet.CopyUpdatedCells(workbook.GetSheet(sheetName));
     }
 }