0
Report Builder: output to Excel removes leading zeros

/t5/coldfusion-discussions/report-builder-output-to-excel-removes-leading-zeros/td-p/754868
Apr 14, 2006
Apr 14, 2006
Copy link to clipboard
Copied
I'm trying to use the Report Builder to output a numeric
field to EXCEL , but on numbers that start with zero EXCEL removes
the leading zero's. ex. 00123 becomes 123.
Is there something that I can put in the expression builder on the field to overcome this.
I've tried concatonating a single quote on the front of the field but the single quote shows up on the output. I've tried this on both the SQL and on the expression builder.
I've read on some of the posts where people have tried using 'mso-number-format:"\@'" within a TD tag but I can't seem to get the syntax right inside the Expression Builder.
Has anybody got any suggestions?
Is there something that I can put in the expression builder on the field to overcome this.
I've tried concatonating a single quote on the front of the field but the single quote shows up on the output. I've tried this on both the SQL and on the expression builder.
I've read on some of the posts where people have tried using 'mso-number-format:"\@'" within a TD tag but I can't seem to get the syntax right inside the Expression Builder.
Has anybody got any suggestions?
TOPICS
Reporting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/coldfusion-discussions/report-builder-output-to-excel-removes-leading-zeros/m-p/754869#M70305
May 17, 2006
May 17, 2006
Copy link to clipboard
Copied
I'm not familiar with Report Builder - so this might not make
sense.
Put before the item to be output:
<td> #payment_type#</td>
Put before the item to be output:
<td> #payment_type#</td>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/coldfusion-discussions/report-builder-output-to-excel-removes-leading-zeros/m-p/754870#M70306
May 27, 2009
May 27, 2009
Copy link to clipboard
Copied
Has anyone found a way to do this yet? Or to format the fields (i.e. 123 should print like 123.00).
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
LATEST
/t5/coldfusion-discussions/report-builder-output-to-excel-removes-leading-zeros/m-p/754871#M70307
May 27, 2009
May 27, 2009
Copy link to clipboard
Copied
Excel will remove leading zeros in a numeric field because it is treating the column as numeric. Putting a ' in front of the number forces Excel to treat the column as text.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

