Setting VerticalAlignment property of CellStyle in *.xls format actually appears as Center when opening the result in Excel 2007. Setting the VerticalAlignment.Top enum int value to 0 instead of 1 fixes the issue, could it be all enum values should be reduced by 1 ?
↧