/// <summary> /// 将WfActivityMatrixResourceDescriptor填充到Excel的WorkBook中 /// </summary> /// <param name="workBook"></param> /// <param name="activityMatrix"></param> public static void FillActivityMatrixResourceDescriptor(this WorkBook workBook, WfActivityMatrixResourceDescriptor activityMatrix) { workBook.NullCheck("workBook"); workBook.Sheets.Remove("Matrix"); WorkSheet sheet = new WorkSheet(workBook, "Matrix"); workBook.Sheets.Add(sheet); sheet.FillActivityMatrixResourceDescriptor(activityMatrix); }