SSRS - new line on report field

独自空忆成欢 提交于 2019-12-25 04:29:19

问题


My query returns a field like "In my honest opinion \r\n you guys can help me!". When I display this field on my report, the lines don't "break" as expected... what should I do?


回答1:


You can use this Expression:

=Replace(Fields!YourField.Value, "\r\n", System.Environment.NewLine)



回答2:


Found and answer:
Right Click textbox -> Expression and then:
=Fields!YourColumn.Value.ToString().Replace(",",vbCrLf)



来源:https://stackoverflow.com/questions/28696774/ssrs-new-line-on-report-field

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