I have a cellStyle created for the Excel file to have row striping. I also want to set any cells with numeric values to RIGHT ALIGN. I can accomplish this by checking the value of the cell, and if numeric I setCellStyle(styleRightAlign) where styleRightAlign is the name of my right align cellStyle.
However, this overrides the existing style and my cell no longer has the correct background color. It's right aligned correctly, but how can I just "add" a cell style rather than override the existing?
Is this possible?
I've looked at using the CellUtil setCellStyleProperty method but I'm unsure how to create an instance of this in ColdFusion, and if it is what I need for this.
UPDATE
So it looks like CF 11+ have the CellUtil available, but CF 10 does not. Figures. So I'm creating a separate style with my row striping for alignRight that includes the background color. If anyone has any ideas how I can just align the cell without affecting the existing cellStyle on it, I'd love to hear it.