Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 在SSRS中格式化文本_Reporting Services_Formatting_Ssrs 2008_Ssrs Expression - Fatal编程技术网

Reporting services 在SSRS中格式化文本

Reporting services 在SSRS中格式化文本,reporting-services,formatting,ssrs-2008,ssrs-expression,Reporting Services,Formatting,Ssrs 2008,Ssrs Expression,我有一份表格的文本 1;#aa2;#dde4;#sdfsa6;#hjjs 我想删除数字和#,并将该字符串保持为 aa dde sdfsa hjjs 有没有像我们在C#中那样的方法来检查字符串是否包含#并将其替换为或空白 我试图在上分开#作为 =(Split(Fields!ows_Room.Value,";#")).GetValue(1) 但是,输出仅为aa2,因为GetValue(1)重新运行第一个索引数组值,所以只能得到aa2。 把你的表情改成 = Join(Split(Fiel

我有一份表格的文本

1;#aa2;#dde4;#sdfsa6;#hjjs
我想删除
数字
#,并将该字符串保持为

aa
dde
sdfsa
hjjs
有没有像我们在C#中那样的方法来检查字符串是否包含
#并将其替换为
或空白

我试图在
上分开#作为

=(Split(Fields!ows_Room.Value,";#")).GetValue(1)

但是,输出仅为
aa2

,因为GetValue(1)重新运行第一个索引数组值,所以只能得到aa2。 把你的表情改成

    = Join(Split(Fields!ows_Room.Value,";#"),” “)
如果您希望输出像

aa2
dde4
sdfsa6
hjjs
使用这个表达式

    = Join(Split(Fields!ows_Room.Value,";#"),VBCRLF)

获取aa2的唯一原因是GetValue(1)运行第一个索引数组值。 把你的表情改成

    = Join(Split(Fields!ows_Room.Value,";#"),” “)
如果您希望输出像

aa2
dde4
sdfsa6
hjjs
使用这个表达式

    = Join(Split(Fields!ows_Room.Value,";#"),VBCRLF)

试试下面的表达

    =Join(Split((System.Text.RegularExpressions.Regex.Replace(Fields!ows_Room.Value, "[0-9]", "").Trim(";").Trim("#")),";#"),” “)

试试下面的表达

    =Join(Split((System.Text.RegularExpressions.Regex.Replace(Fields!ows_Room.Value, "[0-9]", "").Trim(";").Trim("#")),";#"),” “)

输出是
1aa 2dde4 sdfsa 6hjjs
我也不想要任何数字输出是
1aa 2dde4 sdfsa 6hjjs
我也不想要任何数字