исправление ошибок по таблице(жирный шрифт) Excel
This commit is contained in:
parent
596f40441a
commit
dfb8ee759f
@ -38,7 +38,7 @@ namespace ProjectHorseRacingOrg.Reports;
|
|||||||
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.SimpleTextWithoutBorder);
|
StyleIndex.BoldTextWithoutBorder);
|
||||||
for (int i = startIndex + 1; i < startIndex + count; ++i)
|
for (int i = startIndex + 1; i < startIndex + count; ++i)
|
||||||
{
|
{
|
||||||
CreateCell(i, _rowIndex, "", StyleIndex.SimpleTextWithoutBorder);
|
CreateCell(i, _rowIndex, "", StyleIndex.SimpleTextWithoutBorder);
|
||||||
@ -81,7 +81,7 @@ namespace ProjectHorseRacingOrg.Reports;
|
|||||||
}));
|
}));
|
||||||
for (var j = 0; j < data.First().Length; ++j)
|
for (var j = 0; j < data.First().Length; ++j)
|
||||||
{
|
{
|
||||||
CreateCell(j, _rowIndex, data.First()[j], StyleIndex.SimpleTextWithoutBorder);
|
CreateCell(j, _rowIndex, data.First()[j], StyleIndex.BoldTextWithBorder);
|
||||||
}
|
}
|
||||||
_rowIndex++;
|
_rowIndex++;
|
||||||
for (var i = 1; i < data.Count - 1; ++i)
|
for (var i = 1; i < data.Count - 1; ++i)
|
||||||
@ -210,8 +210,8 @@ namespace ProjectHorseRacingOrg.Reports;
|
|||||||
{
|
{
|
||||||
NumberFormatId = 1,
|
NumberFormatId = 1,
|
||||||
FormatId = 0,
|
FormatId = 0,
|
||||||
FontId = 1,
|
FontId = 0,
|
||||||
BorderId = 0,
|
BorderId = 1,
|
||||||
FillId = 0,
|
FillId = 0,
|
||||||
Alignment = new Alignment()
|
Alignment = new Alignment()
|
||||||
{
|
{
|
||||||
@ -224,8 +224,8 @@ namespace ProjectHorseRacingOrg.Reports;
|
|||||||
{
|
{
|
||||||
NumberFormatId = 2,
|
NumberFormatId = 2,
|
||||||
FormatId = 0,
|
FormatId = 0,
|
||||||
FontId = 0,
|
FontId = 1,
|
||||||
BorderId = 1,
|
BorderId = 0,
|
||||||
FillId = 0,
|
FillId = 0,
|
||||||
Alignment = new Alignment()
|
Alignment = new Alignment()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user