Reporting services 如何发送参数列表<;字符串>;从rdlc文件到客户程序集中的静态方法
我在reporting services.rdlc文件中使用对象数据源。 对象中的一个属性的类型为Reporting services 如何发送参数列表<;字符串>;从rdlc文件到客户程序集中的静态方法,reporting-services,rdlc,Reporting Services,Rdlc,我在reporting services.rdlc文件中使用对象数据源。 对象中的一个属性的类型为List。 我尝试将其作为参数发送到自定义程序集中的静态方法,如下所示: =MyModule.ReportCode.GetListItemString(Fields!TestList.Value,0) 但它不起作用,我只得到“#error” 有人知道我必须做些什么才能完成这项工作吗?您可以处理整个Fields集合,并在自定义程序集中提取列表 Yoo可以在程序集中创建函数,如: public sta
List
。
我尝试将其作为参数发送到自定义程序集中的静态方法,如下所示:
=MyModule.ReportCode.GetListItemString(Fields!TestList.Value,0)
但它不起作用,我只得到“#error
”
有人知道我必须做些什么才能完成这项工作吗?您可以处理整个Fields集合,并在自定义程序集中提取列表 Yoo可以在程序集中创建函数,如:
public static double MyFunction(Fields pFields)
并使用以下命令访问列:
if (pFields["myColum"] != null && pFields["myColum"].Value != null) ...
在报告中,您可以使用以下方法调用函数:
Code.MyModule.MyFunction(Fields)
请记住链接Microsoft.ReportingServices.ReportProcessing.ReportObjectModel程序集
希望对您有所帮助。您可以处理整个字段集合,并在自定义程序集中提取列表 Yoo可以在程序集中创建函数,如:
public static double MyFunction(Fields pFields)
并使用以下命令访问列:
if (pFields["myColum"] != null && pFields["myColum"].Value != null) ...
在报告中,您可以使用以下方法调用函数:
Code.MyModule.MyFunction(Fields)
请记住链接Microsoft.ReportingServices.ReportProcessing.ReportObjectModel程序集
希望能有帮助