Fix merged column header data format

This commit is contained in:
Serghei Cebotari 2024-05-27 23:44:59 +03:00
parent dc1e8616a6
commit dfe4ef7b5b

View File

@ -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;