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;