Reporting services 在SSRS中执行子报告时出现问题

Reporting services 在SSRS中执行子报告时出现问题,reporting-services,Reporting Services,我有两份报告: 主报告(显示为列表) ISGN,。。。是表1中的列 子报表(显示为表格) ISGN,。。。。是表2中的列 要求: 主报告应显示在一页中(每页一个isgn) 子报告应显示在下一页中(应将主报告中的isgn作为参数) 我的做法: 在设计中,我将主报告中的每一列都放在不同的文本框中 所有这些文本框都位于一个矩形中 我已将子报表插入主报表的矩形中 我有两个不同的数据集填充主报表和子报表 对于子报表,我创建了一个参数prmisgn 在设计视图中,我右键单击了主报告中的子报告-->子报告属性

我有两份报告:

主报告(显示为列表)

ISGN,。。。是表1中的列

子报表(显示为表格)

ISGN,。。。。是表2中的列

要求:
  • 主报告应显示在一页中(每页一个isgn)

  • 子报告应显示在下一页中(应将主报告中的isgn作为参数)

  • 我的做法:
  • 在设计中,我将主报告中的每一列都放在不同的文本框中

  • 所有这些文本框都位于一个矩形中

  • 我已将子报表插入主报表的矩形中

  • 我有两个不同的数据集填充主报表和子报表

  • 对于子报表,我创建了一个参数prmisgn

  • 在设计视图中,我右键单击了主报告中的子报告-->子报告属性-->参数-->PRMISG=isgn

  • 对于填充我的子报表的数据集,我应用了一个过滤器isgn=prmisgn

  • 问题: 预览此报告时,我收到一个错误:

    执行子报表时出错。对象引用不是指对象的实例


    你能帮我解决这个问题吗?提前感谢:)

    我将用表替换主报告中的矩形,并将其分配给table1数据集。表布局非常灵活,可以有多个带组的行和列。一个单元格(可能在“详细信息”行上)将包含子报表。

    由于子报表具有参数,您应该将参数的值从主报表传递到子报表,步骤如下:

    In Design view, right-click the subreport and then click Subreport Properties.
    
    In the Subreport Properties dialog box, click Parameters.
    
    Click Add. A new row is added to the parameter grid.
    
    In the Name text box, type the name of a parameter in the subreport. This name must match a report parameter in the subreport. If the subreport is in the project, you can choose the parameter from the drop-down list. If the subreport is on the report server, run the report in Report Manager, and on the Properties tab, click Parameters.
    
    In the Value list box, type or select a value to pass to the subreport. This value can be static text or an expression pointing to a field or other object in the main report.
    
    Repeat steps 3-4 to specify a value for each subreport parameter.  
    

    子报表是否独立工作?数据集如何“填充主报表”?不能将数据集指定给矩形。