SSRS 2005 Number formatting int and double within one field

若如初见. 提交于 2019-12-11 01:11:37

问题


I am using SSRS 2005. The issue is I would like to place, in numbers so if number is 23455 it should be displayed as 23,455 I know how to do this I have two data types in this field int and double. What I did to accommodate it is changed the numbers to strings but if I extract them to Excel they show green triangle.

To eliminate green triangle in Excel I used CDEC() function which converts the string to number by doing this I loose , in the numbers.

I was wondering if it is even possible to place a comma within the field which has two different datatypes i.e. double and int.


回答1:


Strings are not your friends! Don't convert numbers to strings.

You should set the format of your cells (textboxes or placeholders) to include the comma. Right click on a text box or placeholder to get the properties dialog. Use the Number pane to format. (You can set this exact same setting in the properties pane as well.

Using these will let the number stay a number in the cell, and will export the formatting to Excel without the conversion to a string.



来源:https://stackoverflow.com/questions/13180160/ssrs-2005-number-formatting-int-and-double-within-one-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!