Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How set height row in excel with NPOI?

Tags:

c#

npoi

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?

like image 937
Garrus_En Avatar asked Jan 30 '23 15:01

Garrus_En


1 Answers

try below approach

var row = sheet.CreateRow(0);
row.Height = 10 ;    
//Or     
sheet.GetRow(1).Height = 10;
like image 149
kumar chandraketu Avatar answered Feb 02 '23 10:02

kumar chandraketu