Skip to content

Commit

Permalink
Update DynamicConfiguration format (#595)
Browse files Browse the repository at this point in the history
Update  DynamicConfiguration format
  • Loading branch information
wangboshun authored May 17, 2024
1 parent 5cce5e4 commit 4d1ee8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MiniExcel/OpenXml/ExcelOpenXmlSheetWriter.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private async Task GenerateSheetByIDataReaderAsync(MiniExcelAsyncStreamWriter wr
for (int i = 0; i < fieldCount; i++)
{
var cellValue = reader.GetValue(i);
await WriteCellAsync(writer, yIndex, xIndex, cellValue, null);
await WriteCellAsync(writer, yIndex, xIndex, cellValue, props[i]);
xIndex++;
}
await writer.WriteAsync($"</x:row>");
Expand Down Expand Up @@ -376,7 +376,7 @@ private async Task GenerateSheetByDataTableAsync(MiniExcelAsyncStreamWriter writ
for (int j = 0; j < value.Columns.Count; j++)
{
var cellValue = value.Rows[i][j];
await WriteCellAsync(writer, yIndex, xIndex, cellValue, null);
await WriteCellAsync(writer, yIndex, xIndex, cellValue, props[j]);
xIndex++;
}
await writer.WriteAsync($"</x:row>");
Expand Down

0 comments on commit 4d1ee8e

Please sign in to comment.