尝试在文本框中显示报告参数时出现错误。
我已经构建了一个表达式,如:
="My Report for " & Parameters!ReportMonth.Value & " " & Parameters!ReportYear.Value
ReportMonth
和 ReportYear
是字符串值我得到的错误是:
The Value expression for the textrun ‘Title.Paragraphs[0].TextRuns[0]’ contains an error: [BC30654] 'Return' statement in a Function, Get, or Operator must return a value.
注:
Title
是文本框对象的名称我正在使用
SSRS 2008
.有什么想法吗?
最佳答案
我找到了答案。我在表达式中使用单引号 (') 作为字符串文字。只允许双引号 (") 分隔字符串文字。
关于visual-studio-2008 - 在文本框中显示报告参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1405184/