SSRS how to add in New line

て烟熏妆下的殇ゞ 提交于 2019-12-19 12:52:22

问题


I am creating a string from stored procedure like this Name1 , Name2 , Name 3.... etc(This string is in one column). I want to display these name in a new line in my SSRS report like

Name1
Name2
Name3

I tried changing the string to

Name1 VbCrlf 
Name2 VbCrlf  
Name 3 

Doesn't seems to be working.

Please help me to resolve this issue.


回答1:


Use an expression like:

=Replace(Field!Names.Value, ",", VbCrLf)



回答2:


="Name1:"+ Fields!name1field.Value + VbCrLf  +
"Name2:"+ Fields!name2field.Value + VbCrLf  +
"Name3:"+ Fields!name3field.Value + VbCrLf  +



回答3:


I used this for displaying each multivalue parameter on a new line

=Join(Parameters!<YourMultiValueParameterNameHere>.Value, VbCrLf)

Hope this helps, Snelly.




回答4:


Please try this ="Name1:" & VbCrLf & "Name2:"& VbCrLf & "Name3:"& VbCrLf



来源:https://stackoverflow.com/questions/18306328/ssrs-how-to-add-in-new-line

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