RDLC Format Textbox Expression

倾然丶 夕夏残阳落幕 提交于 2019-12-08 11:51:57

问题


I have a textbox that should display "interest" value in this format for example "(5%)". The Dataset Interest field has datatype System.Decimal. If I don't format the textbox it just displays "5" on the report page.

Currently in my designer I have

Interest «Expr»

Then the report page displays

Interest 5

Back to my problem I want to display something like this

Interest (5%)

How can I format the Interest expression «Expr»?

Please help. I'm new to RDLC.


回答1:


Just concatenate the expression. For example:

="Interest (" & Fields!Interest.Value & "%)"


来源:https://stackoverflow.com/questions/15354121/rdlc-format-textbox-expression

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