Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.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_Ssrs 2012 - Fatal编程技术网

Reporting services SSRS报告-表达式-在每个大写字母前添加空格

Reporting services SSRS报告-表达式-在每个大写字母前添加空格,reporting-services,ssrs-2012,Reporting Services,Ssrs 2012,我的SSRS报告名是TestReport.rdl。我想使用此报告名称作为报告标题。在文本框->表达式->我需要将“TestReport”转换为“TestReport” 在表达式中,如果我给出=全局值!ReportName,文本框中将显示报告(TestReport)的名称。但是,我需要在测试和报告之间插入一个空格。可以用SSRS中的表达式来实现吗 当我尝试使用正则表达式,如,=System.Text.RegularExpressions.Regex.Replace时,出现语法错误。请尝试以下操作:

我的SSRS报告名是TestReport.rdl。我想使用此报告名称作为报告标题。在文本框->表达式->我需要将“TestReport”转换为“TestReport”

在表达式中,如果我给出=全局值!ReportName,文本框中将显示报告(TestReport)的名称。但是,我需要在测试和报告之间插入一个空格。可以用SSRS中的表达式来实现吗

当我尝试使用正则表达式,如,
=System.Text.RegularExpressions.Regex.Replace

时,出现语法错误。请尝试以下操作:

=System.Text.RegularExpressions.Regex.Replace(Globals!ReportName, "(?<=[a-z])([A-Z])"," $1")

=System.Text.RegularExpressions.Regex.Replace(Globals!ReportName)(?我知道如果您在文本框中使用占位符并将其标记类型设置为HTML,您可以使用HTML
插入一个空格。您可以创建一个数据集,并且可以从SQL Server实现这一点。如果您需要更多帮助,请告诉我。