我正在尝试为我的 Web 应用程序制作一个相对复杂的 rdlc 报告,而我目前面临的问题是报告的自定义代码部分中定义了一个函数.然后我在那里添加了另一个函数,报告没有执行,给出错误报告的定义无效".每次我删除此功能时,报告都会顺利运行,当我将其添加回来时,它会在报告查看器中出现此错误.
I am trying to make a comparatively complex rdlc report for my web application and the problem that I am currently facing is that there is one function defined in the custom code section of the report. And then I added another function there and the report is not executing giving an error "The definition of report is invalid." Everytime I remove this function the report runs smoothly, when I add it back it gives this error in the report viewer.
推荐答案用于在 rdlc 中编写自定义代码:
For writing custom code in rdlc :
在自定义代码中,您可以编写函数:
In Custom Code You can Write your functions:
Public ReadOnly Property FetchSomeData() As String Get Return sharedMember End Get End Property Dim sharedMember As String = "Shared Data (Does not require initialization)" Public Function MyFunction(ByVal s As String) '' Write your code and return String Return s.toUpper() End Function更多推荐
向RDLC自定义代码添加多个功能
发布评论