sql - SSRS - Line break in Matrix cell -


in ssrs matrix cell want able have line break between each output given.

i have following code in ms sql server stored procedure point ssrs report

select customer, hostname, (qname + qhostname + qtag + qserial + qcategory + qtype + qitem + qmanu + qmodel + qversion) additionalinfo1  tableq 

at moment in additionalinfo1 cell when 1 of options returned separated comma

e.g.

qname, qhostname, qtag.

instead them separated line break within same cell

e.g.

qname

qhostname

qtag

i have tried putting + char(13) + between each q... in additionalinfo1 didn't work.

for ssrs, want use chr(10), not chr(13). i've used in expressions , join delimiter argument , produced desired effect: line breaks within textbox.

edit:

below expression include fields line breaks if value present, or omit both if field null.

=fields!qname.value + iif(isnothing(fields!qhostname.value),"", vbcrlf + fields!qhostname.value) + iif(isnothing(fields!qtag.value),"", vbcrlf + fields!qtag.value) + iif(isnothing(fields!qserial.value),"", vbcrlf + fields!qserial.value) + iif(isnothing(fields!qcategory.value),"", vbcrlf + fields!qcategory.value) + iif(isnothing(fields!qtype.value),"", vbcrlf + fields!qtype.value) + iif(isnothing(fields!qitem.value),"", vbcrlf + fields!qitem.value) + iif(isnothing(fields!qmanu.value),"", vbcrlf + fields!qmanu.value) + iif(isnothing(fields!qmodel.value),"", vbcrlf + fields!qmodel.value) + iif(isnothing(fields!qversion.value),"", vbcrlf + fields!qversion.value) 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -