修复其他考试提交
This commit is contained in:
@@ -11,7 +11,8 @@ public static class ExcelWorkbookHelper
|
||||
string sheetName,
|
||||
IReadOnlyList<string> headers,
|
||||
IEnumerable<IReadOnlyList<object?>> rows,
|
||||
IReadOnlyList<string>? instructions = null)
|
||||
IReadOnlyList<string>? instructions = null,
|
||||
Action<IXLWorksheet, int>? configureRow = null)
|
||||
{
|
||||
using var workbook = new XLWorkbook();
|
||||
var sheet = workbook.Worksheets.Add(sheetName);
|
||||
@@ -33,6 +34,7 @@ public static class ExcelWorkbookHelper
|
||||
{
|
||||
SetCellValue(sheet.Cell(rowNumber, column + 1), row[column]);
|
||||
}
|
||||
configureRow?.Invoke(sheet, rowNumber);
|
||||
rowNumber++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user