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
C# 以编程方式从SQL Reporting Services访问隐藏字段_C#_Reporting Services - Fatal编程技术网

C# 以编程方式从SQL Reporting Services访问隐藏字段

C# 以编程方式从SQL Reporting Services访问隐藏字段,c#,reporting-services,C#,Reporting Services,我有一个表,其中包含对其他一些表的引用,这些表依次包含一个包含PDF文件二进制数据的字段。 此表用于SSRS(SQL Reporting Services)报告。包含二进制字段的表不包括在报告中(以避免性能问题)。用户也不应在报告中看到表的任何Id字段 以下是一个简化结构: Table A ------------ AId (should not be visible in the report) SomeField Table B (not included in the report)

我有一个表,其中包含对其他一些表的引用,这些表依次包含一个包含PDF文件二进制数据的字段。 此表用于SSRS(SQL Reporting Services)报告。包含二进制字段的表不包括在报告中(以避免性能问题)。用户也不应在报告中看到表的任何Id字段

以下是一个简化结构:

Table A
------------
AId (should not be visible in the report)
SomeField


Table B  (not included in the report)
------------
BId 
FK_AId
BinaryPdfData
我需要开发一个C#应用程序,它使用Render函数从SSRS导出数据,并将导出的文件放在某个文件夹中

我需要以某种方式获取所有AId字段(在呈现的报告中不可见),并从数据库中收集所有相关的PDF信函


如何将AId字段添加到SSRS报告中,使该字段在报告中不可见,但可以通过C代码访问,以便我可以使用AId字段收集所有相关的PDF信函?

您可以将AId字段添加为查询参数,并通过C代码访问该参数