Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 如何发送参数列表<;字符串>;从rdlc文件到客户程序集中的静态方法_Reporting Services_Rdlc - Fatal编程技术网

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

我在reporting services.rdlc文件中使用对象数据源。 对象中的一个属性的类型为
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程序集

希望能有帮助