SSRS报告表达中的评论

Sop*_*hia 20 sql-server reporting sql-server-2008 reporting-services ssrs-2008

我在Reporting Services中使用了一些复杂的表达式来控制报表中数据的值,格式等(请参阅MSDN).

是否可以在这些表达式中插入代码注释,如果是,那么语法是什么?

通过代码注释我的意思是:

// single line comment
/* or multi line comment */
Run Code Online (Sandbox Code Playgroud)

sha*_*esh 29

它看起来像VB代码.
尝试使用撇号写评论.

'This is a sample comment.

这是猜:)

编辑:VB实际上没有多行注释.
但是,请尝试使用以下内容查看是否有效


'This is a sample comment _
followed by a new line _
and the comment ends

如果这不起作用,你可以这样做


'This is a sample comment
'followed by a new line
'and the comment ends
Run Code Online (Sandbox Code Playgroud)

编辑2:此外,似乎评论可以在开始或结束.
来源:https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?反馈ID = 441283