diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2024-05-27 23:44:59 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2024-05-27 23:44:59 +0300 |
commit | dfe4ef7b5bb5d920c8a01311a63cbdc472601589 (patch) | |
tree | 5049cf747e5ccf2a5ce58305973aea6ed0f0ae5c | |
parent | dc1e8616a6ebeb89cbe76dccc5a771481cefb8af (diff) |
Fix merged column header data format
-rw-r--r-- | RhSolutions.AddIn/Services/ExcelWriterBase.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/RhSolutions.AddIn/Services/ExcelWriterBase.cs b/RhSolutions.AddIn/Services/ExcelWriterBase.cs index 3ec5348..e6fa80e 100644 --- a/RhSolutions.AddIn/Services/ExcelWriterBase.cs +++ b/RhSolutions.AddIn/Services/ExcelWriterBase.cs @@ -70,6 +70,7 @@ namespace RhSolutions.Services .Insert(XlInsertShiftDirection.xlShiftToRight, XlInsertFormatOrigin.xlFormatFromRightOrBelow); Range newColumnHeader = _worksheet.Cells[_amountCell.Row, _amountCell.Column - 1]; + newColumnHeader.NumberFormat = "@"; newColumnHeader.Value2 = $"{product.Item1}"; newColumnHeader.WrapText = true; |