简体   繁体   English

SSRS如何添加新行

[英]SSRS how to add in New line

I am creating a string from stored procedure like this Name1 , Name2 , Name 3.... etc(This string is in one column). 我正在从存储过程创建一个字符串,如Name1 , Name2 , Name 3....等(此字符串在一列中)。 I want to display these name in a new line in my SSRS report like 我想在我的SSRS报告中的新行中显示这些名称

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. 请帮我解决这个问题。

使用如下表达式:

=Replace(Field!Names.Value, ",", VbCrLf)
="Name1:"+ Fields!name1field.Value + VbCrLf  +
"Name2:"+ Fields!name2field.Value + VbCrLf  +
"Name3:"+ Fields!name3field.Value + VbCrLf  +

I used this for displaying each multivalue parameter on a new line 我用它来显示新行上的每个多值参数

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

Hope this helps, Snelly. 希望这会有所帮助,Snelly。

请尝试这个="Name1:" & VbCrLf & "Name2:"& VbCrLf & "Name3:"& VbCrLf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM