From c9d548b642792dbaf20e2e2e25bad51ae7b83007 Mon Sep 17 00:00:00 2001 From: kamonwan taengsuk Date: Sun, 19 Feb 2023 13:13:08 +0700 Subject: [PATCH] bug fixed --- Controllers/DetailKpiFinance.Controller.cs | 2 ++ Controllers/Detail_Kpi.Controller.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/Controllers/DetailKpiFinance.Controller.cs b/Controllers/DetailKpiFinance.Controller.cs index d0832c6..bc29594 100644 --- a/Controllers/DetailKpiFinance.Controller.cs +++ b/Controllers/DetailKpiFinance.Controller.cs @@ -170,6 +170,7 @@ namespace rmutr_report.Controllers ws.Cell(rowhead, col).Style.Border.RightBorder = XLBorderStyleValues.Thin; ws.Cell(rowhead,col).Style.Font.FontName = "TH Sarabun New"; ws.Cell(rowhead,col).Style.Font.FontSize = 16; + ws.Cell(rowhead,col).Style.Alignment.WrapText = true; col++; var a = _kpi.agencys.Count; @@ -748,6 +749,7 @@ namespace rmutr_report.Controllers ws.Range(ws.Cell(row, 1),ws.Cell(row,26)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Range(ws.Cell(row, 1),ws.Cell(row,26)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; ws.Range(ws.Cell(row,8),ws.Cell(row,26)).Style.Alignment.SetTextRotation(90); + ws.Range(ws.Cell(row,8),ws.Cell(row,26)).Style.Alignment.WrapText = true; ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 1).Style.Border.LeftBorder = XLBorderStyleValues.Thin; diff --git a/Controllers/Detail_Kpi.Controller.cs b/Controllers/Detail_Kpi.Controller.cs index 68f2e19..cb809a1 100644 --- a/Controllers/Detail_Kpi.Controller.cs +++ b/Controllers/Detail_Kpi.Controller.cs @@ -182,6 +182,7 @@ namespace rmutr_report.Controllers ws.Cell(rowhead, col).Style.Border.RightBorder = XLBorderStyleValues.Thin; ws.Cell(rowhead,col).Style.Font.FontName = "TH Sarabun New"; ws.Cell(rowhead,col).Style.Font.FontSize = 16; + ws.Cell(rowhead,col).Style.Alignment.WrapText = true; col++; var a = _kpi.agencys.Count;