Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: Vertical Alignment not working. [13263]

$
0
0
Version : 2.0.6.0
workbook type : HSSFWorkbook

Vertical alignment's enum value not correct.
NPOI.SS.UserModel.VerticalAlignment

I set Center(2) but result worksheet's vertical alignment was Bottom(3)
Then I set center in Excel and read cell that's result was 1(Top)

The solution was NPOI.SS.UserModel.VerticalAlignment's value start with 0 not 1.
Top = 0,
Center = 1,
Bottom = 2,
Justify = 3,
Distributed = 4,

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>