For aligning column content to Center I use following command:
myExcelWorksheet.Columns[
"X:Z"].HorizontalAlignment = HorizontalAlignment.Center;
Unfortunately it doesn't work - the cell content remains aligned to the Left.
Surprisingly for Right alignement the same command works !
What could be workaround ?
Regards.
Pavel.


VulpesRank #55 · 29.2K reputationPosted Oct 2, 2012, 6:22 AM EDT
Pavel106 reputationPosted Oct 3, 2012, 3:18 AM EDT