Format Cells
Posted: Wed Feb 20, 2013 8:49 pm
I'm having difficulty formatting cells on a worksheet. I'm only trying to set three attributes, viz.
. the number format (on floats and dates);
. bolding; and
. Horizontal alignment.
If I attempt to set all cells using the same format (Cell[Col,Row].NumberFormat ....) all is fine (and I can setup as many as I like). However, if I have a mixture of different formats, after setting several cells, an exception is raised when executing the function TXc12DataStyleSheet.FindEqualStyle.
I've tried setting the Default format first (following the examples in FormatCells); it works for some, but not others.
I've tried using CmdFormat (again following the exampes in FormatCells), but this doesn work at all.
I'm using the latest release (5.10 downloaded a couple of days ago). I'd really appreciate some assistance (the inability to set cell formats is not a show stopper, but I'd like to get it implemented before it does).
. the number format (on floats and dates);
. bolding; and
. Horizontal alignment.
If I attempt to set all cells using the same format (Cell[Col,Row].NumberFormat ....) all is fine (and I can setup as many as I like). However, if I have a mixture of different formats, after setting several cells, an exception is raised when executing the function TXc12DataStyleSheet.FindEqualStyle.
I've tried setting the Default format first (following the examples in FormatCells); it works for some, but not others.
I've tried using CmdFormat (again following the exampes in FormatCells), but this doesn work at all.
I'm using the latest release (5.10 downloaded a couple of days ago). I'd really appreciate some assistance (the inability to set cell formats is not a show stopper, but I'd like to get it implemented before it does).