I’m using xfiles xcell class to create excel files. I have a style defined that gives me colored background sets font etc. However, we have a written a generic handler for this so, what we have is a row in a queue that contains a styleid, then multiple columns of info.
So, I have for example 1,15,H0,Total|$0|$678|Avg|123
row,column,style,data (pipe delimited columns)
In this case, what I want is H0 is blue background
But, where there is a $ in the data, I want a currency ($#,###.##) format. The problem is, I don’t want to define a H0 and H0$ style because the H0$ is exactly like H0 but with $ for the values.
I tried to do a setcell using Currency with NO DATA
then a setcell to the same cell using H0 style with DATA.
What I get is no $ / currency format back background
If I switch the order, I get the currency format by NO background color.
I noticed that the setstyle has a Parent Parameter. Would that allow me to define my H0 style as I do now with the background color and boxed Then also define a H0$ style that simply has the #,###.00 format with a parent of H0? I’m thinking maybe that will inherit the H0 settings and add the setstyleNumberFormat param to it?
Thanks for any help.



