I'm making a excel cell format in cfspreadsheet
(Coldfusion 10) as a number but when it convert to excel it show warning at cell which is
Number Stored as Text.
Can I know how to fix this? Because I need the format as a number.Here is my code:
<cfscript>
theSheet = SpreadsheetNew("Order Details 1");
SpreadsheetAddRow(theSheet, "NO,VENDOR, PART NUMBER, PART NAME, PSI, LEAD TIME, ,N-5, N-4, N-3,N-2, N-1, N, N+1, N+2, N+3, N+4, PACKING MONTH, PRODUCTION MONTH ,MONTH,YEAR",5,1);
myFormat2=StructNew();
myFormat2.bold=false;
SpreadsheetFormatRow(theSheet,myFormat2,6);
SpreadsheetAddRows(theSheet,getROW);
SpreadsheetFormatColumn(theSheet,{dataformat="0"},5);
SpreadsheetFormatColumn(theSheet,{alignment="right"},5);
SpreadsheetFormatCellRange (theSheet,{font="Calibri"}, 7, 1, 2006, 17);
</cfscript>
Updated From Comments:
Sample Query value is 50
the datatype is number
. My query is look like this.
SELECT psi||'%' FROM vendor
I think this is because the datatype is number and concatenate with % that is why it stored as text.