Click here to Skip to main content
15,889,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using SSRS 2008 R2, when exporting ssrs report to excel, number column in excel sheet is coming as in either GENERAL Format or CUSTOM Format, Need to export in NUMBER format only

What I have tried:

Change the Format Property to 'N'
=CInt(Fields!FieldValue.Value)
Posted
Updated 25-Feb-18 22:42pm
v2

1 solution

I had this problem. Some cells would be text and others numbers - all with the same formatting string.
Some of the tricks below

1) multiply your cells expression by 1.000 (1 doesn't work!) - this forces SSRS to format the cell as a number. eg; (your expression here) * 1.000

2) =CLng(Fields!FieldValue.Value)

3) For every textbox in the column that contains numeric values, select it and set the Format property to N (number)

4)Make sure your <markuptype>None not <markuptype>HTMLfor the textbox in your tablix or Table.

5)Change the Expression of the textbox to =CInt(Format(Fields.FieldValue.Value, "#,###.0"))
 
Share this answer
 
v2
Comments
Member 12495949 26-Feb-18 4:50am    
=CInt(Fields!FieldValue.Value)*1.000, tried this and =(Fields!FieldValue.Value)*1.000, both exported in custom format only
RDBurmon 26-Feb-18 4:55am    
try other four tricks , how about cLng()?
Member 12495949 26-Feb-18 5:06am    
tried all these options, not working for me

1) multiply your cells expression by 1.000 (1 doesn't work!) - this forces SSRS to format the cell as a number. eg; (your expression here) * 1.000

2) =CLng(Fields!FieldValue.Value)

3) For every textbox in the column that contains numeric values, select it and set the Format property to N (number)

4)Make sure your <markuptype>None not <markuptype>HTMLfor the textbox in your tablix or Table.

5)Change the Expression of the textbox to =CInt(Format(Fields.FieldValue.Value, "#,###.0"))
Member 12495949 26-Feb-18 5:12am    
CLng also not working for me..converting it into Custom format

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900