How to set row height to Autofit in NPOI?

Jun 7, 2012 at 1:08 AM

How to set row height to Autofit in NPOI? Or, how to get the most suitable height value of a row based on its content and font size?

Jul 4, 2012 at 2:45 AM

Just need to set "grbit" flag (offset 16, size 2) in Row Record (208h) --> 

1) Change 7th bit "fUnsynced" from 0 to 1;

2) And set cell style to "Wrap"