问题
How set height row in c# with NPOI?
To specify the width of the columns I'm using XSSFSheet.SetColumnWidth, but what does the command for the height of the cells look like?
回答1:
The height of the row is the same: XSSFSheet.GetRow(index).Heigh {get;set;}
回答2:
try below approach
var row = sheet.CreateRow(0);
row.Height = 10 ;
//Or
sheet.GetRow(1).Height = 10;
来源:https://stackoverflow.com/questions/46147969/how-set-height-row-in-excel-with-npoi