From 729c828896aa8f9b60ba20a02772690bb9c91cf4 Mon Sep 17 00:00:00 2001 From: Mitchel Sellers Date: Tue, 3 Feb 2026 23:25:56 -0600 Subject: [PATCH] Fixed issuw with newly introduced styles --- .../OpenXmlSpreadsheetGenerator.cs | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/NetCore.Utilities.Spreadsheet/OpenXmlSpreadsheetGenerator.cs b/src/NetCore.Utilities.Spreadsheet/OpenXmlSpreadsheetGenerator.cs index a3c3d01..dbc1c7c 100644 --- a/src/NetCore.Utilities.Spreadsheet/OpenXmlSpreadsheetGenerator.cs +++ b/src/NetCore.Utilities.Spreadsheet/OpenXmlSpreadsheetGenerator.cs @@ -534,7 +534,7 @@ private static Stylesheet CreateStylesheet() NumberFormatId = 22, ApplyNumberFormat = true }, - new CellFormat + new CellFormat // F0 { FormatId = 0, FontId = 0, @@ -543,7 +543,7 @@ private static Stylesheet CreateStylesheet() NumberFormatId = 301, ApplyNumberFormat = true }, - new CellFormat + new CellFormat // F1 { FormatId = 0, FontId = 0, @@ -551,7 +551,8 @@ private static Stylesheet CreateStylesheet() FillId = 0, NumberFormatId = 302, ApplyNumberFormat = true - }, new CellFormat + }, + new CellFormat // F2 { FormatId = 0, FontId = 0, @@ -559,7 +560,8 @@ private static Stylesheet CreateStylesheet() FillId = 0, NumberFormatId = 303, ApplyNumberFormat = true - }, new CellFormat + }, + new CellFormat // F3 { FormatId = 0, FontId = 0, @@ -567,6 +569,24 @@ private static Stylesheet CreateStylesheet() FillId = 0, NumberFormatId = 304, ApplyNumberFormat = true + }, + new CellFormat // C3 + { + FormatId = 0, + FontId = 0, + BorderId = 0, + FillId = 0, + NumberFormatId = 401, + ApplyNumberFormat = true + }, + new CellFormat // C4 + { + FormatId = 0, + FontId = 0, + BorderId = 0, + FillId = 0, + NumberFormatId = 402, + ApplyNumberFormat = true } ); return styles;