This commit is contained in:
Pipiaka 2024-12-23 08:29:44 +04:00
parent 5c8d21f228
commit cc06a1a703

View File

@ -30,11 +30,11 @@ internal class ExcelBuilder
public ExcelBuilder AddHeader(string header, int startIndex, int count) public ExcelBuilder AddHeader(string header, int startIndex, int count)
{ {
CreateCell(startIndex, _rowIndex, header, CreateCell(startIndex, _rowIndex, header,
StyleIndex.BoldTextWithBorders); StyleIndex.BoldTextWithoutBorder);
for (int i = startIndex + 1; i < startIndex + count; ++i) for (int i = startIndex + 1; i < startIndex + count; ++i)
{ {
CreateCell(i, _rowIndex, "", CreateCell(i, _rowIndex, "",
StyleIndex.BoldTextWithBorders); StyleIndex.BoldTextWithoutBorder);
} }
_mergeCells.Append(new MergeCell() _mergeCells.Append(new MergeCell()
{ {
@ -46,7 +46,7 @@ internal class ExcelBuilder
public ExcelBuilder AddParagraph(string text, int columnIndex) public ExcelBuilder AddParagraph(string text, int columnIndex)
{ {
CreateCell(columnIndex, _rowIndex++, text, CreateCell(columnIndex, _rowIndex++, text,
StyleIndex.BoldTextWithoutBorder); StyleIndex.SimpleTextWithoutBorder);
return this; return this;
} }
public ExcelBuilder AddTable(int[] columnsWidths, List<string[]> data) public ExcelBuilder AddTable(int[] columnsWidths, List<string[]> data)
@ -75,7 +75,7 @@ internal class ExcelBuilder
for (var j = 0; j < data.First().Length; ++j) for (var j = 0; j < data.First().Length; ++j)
{ {
CreateCell(j, _rowIndex, data.First()[j], CreateCell(j, _rowIndex, data.First()[j],
StyleIndex.SimpleTextWithoutBorder); StyleIndex.BoldTextWithBorders);
} }
_rowIndex++; _rowIndex++;
for (var i = 1; i < data.Count - 1; ++i) for (var i = 1; i < data.Count - 1; ++i)
@ -83,14 +83,14 @@ internal class ExcelBuilder
for (var j = 0; j < data[i].Length; ++j) for (var j = 0; j < data[i].Length; ++j)
{ {
CreateCell(j, _rowIndex, data[i][j], CreateCell(j, _rowIndex, data[i][j],
StyleIndex.SimpleTextWithoutBorder); StyleIndex.SimpleTextWithBorders);
} }
_rowIndex++; _rowIndex++;
} }
for (var j = 0; j < data.Last().Length; ++j) for (var j = 0; j < data.Last().Length; ++j)
{ {
CreateCell(j, _rowIndex, data.Last()[j], CreateCell(j, _rowIndex, data.Last()[j],
StyleIndex.SimpleTextWithoutBorder); StyleIndex.SimpleTextWithBorders);
} }
_rowIndex++; _rowIndex++;
return this; return this;