add WrapText

This commit is contained in:
kamonwan taengsuk
2023-02-20 13:11:30 +07:00
parent 6b821f1615
commit 577fc54129
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ namespace rmutr_report.Controllers
ws.Column(21).Width = 10;
ws.Column(22).Width = 10;
ws.Column(23).Width = 10;
ws.Columns().AdjustToContents();
ws.Range(ws.Cell(1, 1), ws.Cell(1, 30)).Style.Alignment.WrapText = true;
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
ws.Column(1).Style.Font.FontSize = 16;
ws.Column(2).Style.Font.FontName = "TH Sarabun New";

View File

@@ -146,7 +146,7 @@ namespace rmutr_report.Controllers
ws.Column(21).Width = 10;
ws.Column(22).Width = 10;
ws.Column(23).Width = 10;
ws.Columns().AdjustToContents();
ws.Range(ws.Cell(1, 1), ws.Cell(1, 30)).Style.Alignment.WrapText = true;
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
ws.Column(1).Style.Font.FontSize = 16;
ws.Column(2).Style.Font.FontName = "TH Sarabun New";