sql-server - SSRS 报告表达式中的注释

标签 sql-server sql-server-2008 reporting-services reporting ssrs-2008

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

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

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

// single line comment
/* or multi line comment */

最佳答案

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

'这是一个示例评论。

这是一个猜测:)

编辑:VB 并没有真正的多行注释。
但是,请尝试使用以下命令看看是否有效


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

If that doesn't work, you could do


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

EDIT2:另外,似乎评论应该放在最后。

关于sql-server - SSRS 报告表达式中的注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/886008/

相关文章:

reporting-services - SSRS : Export to PDF - Top Margin is too big

sql-server - 找出完整的 SQL Server 数据库大小

sql - 使用数据库表作为队列

sql-server - 表使用太多磁盘空间

reporting-services - SSRS 2008R2。图表线条不使用抗锯齿功能

sql-server-2005 - 如何仅对 Reporting Services 报告执行一次自定义代码函数?

sql-server - SQL Server 中列存储索引的联接消除

sql - 如何级联/删除这个场景?出现多个级联错误

c# - 从不同的表中检索数据

sql - 在 SQL 中使用 Select 的同时使用 Update