Skip to content

Commit 8e646e5

Browse files
Merge pull request #117 from IowaComputerGurus/feature/fix-number-format
Fixed issuw with newly introduced styles
2 parents 94ea7dc + 729c828 commit 8e646e5

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

src/NetCore.Utilities.Spreadsheet/OpenXmlSpreadsheetGenerator.cs

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ private static Stylesheet CreateStylesheet()
534534
NumberFormatId = 22,
535535
ApplyNumberFormat = true
536536
},
537-
new CellFormat
537+
new CellFormat // F0
538538
{
539539
FormatId = 0,
540540
FontId = 0,
@@ -543,30 +543,50 @@ private static Stylesheet CreateStylesheet()
543543
NumberFormatId = 301,
544544
ApplyNumberFormat = true
545545
},
546-
new CellFormat
546+
new CellFormat // F1
547547
{
548548
FormatId = 0,
549549
FontId = 0,
550550
BorderId = 0,
551551
FillId = 0,
552552
NumberFormatId = 302,
553553
ApplyNumberFormat = true
554-
}, new CellFormat
554+
},
555+
new CellFormat // F2
555556
{
556557
FormatId = 0,
557558
FontId = 0,
558559
BorderId = 0,
559560
FillId = 0,
560561
NumberFormatId = 303,
561562
ApplyNumberFormat = true
562-
}, new CellFormat
563+
},
564+
new CellFormat // F3
563565
{
564566
FormatId = 0,
565567
FontId = 0,
566568
BorderId = 0,
567569
FillId = 0,
568570
NumberFormatId = 304,
569571
ApplyNumberFormat = true
572+
},
573+
new CellFormat // C3
574+
{
575+
FormatId = 0,
576+
FontId = 0,
577+
BorderId = 0,
578+
FillId = 0,
579+
NumberFormatId = 401,
580+
ApplyNumberFormat = true
581+
},
582+
new CellFormat // C4
583+
{
584+
FormatId = 0,
585+
FontId = 0,
586+
BorderId = 0,
587+
FillId = 0,
588+
NumberFormatId = 402,
589+
ApplyNumberFormat = true
570590
}
571591
);
572592
return styles;

0 commit comments

Comments
 (0)