I am facing an issue with coldfusion9 spreadsheet functions. It cuts of leading zeroes. This is what I am trying. I am getting array of data and using spreadsheetaddrows. When I am constructing an array, am using quotes so as to preserve the zeroes but with no effect. Adding some characters like "~" helps. But when I am adding space, coldfusion is not preserving the spaces. Is there a better way to handle this issue?
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346789
http://www.google.ca/search?hl=en&client=firefox-a&hs=vpO&rls=org.mozilla%3A
en-GB%3Aofficial&biw=1920&bih=1084&q=excel+truncates+leading+zero&btnG=Searc
h&oq=excel+truncates+leading+zero&aq=f&aqi=&aql=&gs_sm=s&gs_upl=0l0l0l18408l
0l0l0l0l0l0l0l0ll0l0
Brook
Hi All -
Thanks
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346790
BC
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346791
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346797
Brian Cain
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346803
I tried using a single quote within coldfusion before sending it to excel.
Excel still displays the quote. This is what I am doing
<cfset col1 = #'query1.col1#>
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346810
<cfset col1 = "#'query1.col1#">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346811
-----Original Message-----
From: funand learning [mailto:funand...@gmail.com]
Sent: Wednesday, August 17, 2011 11:26 AM
To: cf-talk
Subject: Re: coldfusion spreadsheet leading zeroes issue
I tried using a single quote within coldfusion before sending it to excel.
Excel still displays the quote. This is what I am doing
<cfset col1 = "#'query1.col1#">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346813
BTW, Steven has the right string format for the CF syntax.
BC
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346814