问题
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