XSL: 1.0
I have an XSL script that is inputting a formula into an excel cell that will be filled in dynamically by the formula. The contents of the cell will just be numbers (specifically hours). My goal is to set this new cell to format category of Custom and type "[h]". Ex: Format="[h]"
XSL:
<Cell ss:StyleID="cell_data" ss:Formula="=SUM(R[0]C[+1]-R[0]C[-2])"> </Cell> I have tried to add a ss:Format with ss:Type="Number" to this via a <Data> tag but it seems that isnt valid.
The Style is:
<Style ss:ID="cell_data"> <Font ss:Color="#000000" ss:FontName="Calibri"/> <Interior ss:Color="#FFCC99" ss:Pattern="Solid"/> <Borders> <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/> </Borders> </Style> Any advice on how to change this cell would be most helpful.
<Data>,ss:Format, andss:Type="Number". And, what led you to conclude that your attempt was not valid?