当前位置: 首页 > 工具软件 > fyiReporting > 使用案例 >

fyiReporting RDLC Report Custom Code

汪胤
2023-12-01

Report Properties  -> Code 中

必须用Shared定义

 

Shared Function Hello() As String

     Return "Hello"

End Function

 

使用时

 

=Code.Hello()

 

如果需要参数,一定注意处理

Shared Function Hello(ByVal obj As Object) As String --定义时可以使用Object

     Dim Name As String

     Name = CSTR(obj)    --使用CSTR   CDEC   CINT  等转换

     Return "Hello " + Name

End Function

转载于:https://www.cnblogs.com/Eugene/archive/2008/08/22/1274184.html

 类似资料:

相关阅读

相关文章

相关问答