13

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.

Hiren gardhariya
  • 1,247
  • 10
  • 29
Thinna
  • 267
  • 2
  • 3
  • 10

4 Answers4

25

Use an expression like:

=Replace(Field!Names.Value, ",", VbCrLf)
Chris Latta
  • 20,316
  • 4
  • 62
  • 70
  • 2
    Good tip. This is how I used it in an expression to show the selections from a multi-value parameter. ="Name:" + VbCrLf + Join(Parameters!Names.Value, VbCrLf) – Tarzan Mar 18 '16 at 14:58
0
="Name1:"+ Fields!name1field.Value + VbCrLf  +
"Name2:"+ Fields!name2field.Value + VbCrLf  +
"Name3:"+ Fields!name3field.Value + VbCrLf  +
Avik
  • 1
  • 1
0

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

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

Hope this helps, Snelly.

SnellyCat
  • 156
  • 1
  • 10
0

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

Mitul Panchal
  • 592
  • 5
  • 7