SSRS - new line on report field

2019-09-04 06:58发布

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?

2条回答
Bombasti
2楼-- · 2019-09-04 07:18

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

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-09-04 07:22

You can use this Expression:

=Replace(Fields!YourField.Value, "\r\n", System.Environment.NewLine)
查看更多
登录 后发表回答