当前位置: 代码迷 >> 报表 >> reporting service 函数如何调用
  详细解决方案

reporting service 函数如何调用

热度:379   发布时间:2016-05-05 08:10:43.0
reporting service 函数怎么调用
请问。如果在Reporting Service中自定义了函数。怎么样才可以在表达式中调用呢??

谢谢啊。。

------解决方案--------------------
code.customer(fields.value,"phone")



------解决方案--------------------
'建立自定義函數,在CODE區,代碼如下:
'建立日期區間

Public Function ShowShipMentDateArea (ByVal ShipMentDate01,ByVal ShipMentDate02) As String
Dim S as String
If ShipMentDate01="" Then
S=""
Else
S=ShipMentDate01
End If
If ShipMentDate02="" Then
S=S+""
Else
S=S+"~"+ShipMentDate02
End If
Return S
End Function

--可在TextBox里面按如下方式調用:
="出貨日期:"+code.ShowShipMentDateArea(Parameters!ShipMentDate01.Value,Parameters!ShipMentDate02.Value)
  相关解决方案