【发布时间】:2011-12-06 16:05:06
【问题描述】:
我在 SSRS 2008 的“自定义代码”中有以下代码。它在 VS2008 中运行良好,但无法在服务器上运行:
Public Shared Function Ns(ByVal num as Object, ByVal def as Object) as Object
if IsNothing(num) OrElse Not IsNumeric(num) OrElse System.Double.IsNaN(num) then
return def
else
return num
end if
End Function
我在 SSRS 2008 的字段中将其称为“Code.Ns(..., ...)”。在 VS2008 的渲染器中,它似乎执行得很好。当我尝试使用自定义 .NET 应用程序以编程方式呈现它时,报告会呈现除自定义代码部分之外的所有字段:#Error。我做错了什么?
【问题讨论】:
标签: .net vb.net reporting-services ssrs-2008