我的子报表在主报表的每个单元格中显示所有结果

问题描述 投票:0回答:1

我确实有分别名为MainReport.rdlcSubReport.rdlc的RDLC文件。

Subreport.rdlc(显然,充当我的子报表)。

我能够在主表中显示子报表的详细信息。但问题在于子报表在我的子报表的每一行上显示所有数据]

我想要的是:

enter image description here

但是发生了什么事:

enter image description here

MainReport上的数据集查询

Select DISTINCT tblMain.ID_Num, tblMain.fldDate,Scope.Description,tblMain.Accomplishment,Rating.fldQuality, Rating.fldQuantity, Rating.fldAccuracy from tblMain 
JOIN tblScope as SCOPE on  tblMain.Scope = Scope.Id
LEFT JOIN tblRatings as Rating on tblMain.RatingRefCode = Rating.ScopeCode 
where tblMain.ID_Num = @RefNo AND fldDate between @Start and @End
Group By tblMain.ID_Num, tblMain.fldDate,Scope.Description,tblMain.Accomplishment,Rating.fldQuality, Rating.fldQuantity, Rating.fldAccuracy

这是子报表上的数据集查询

Select DISTINCT tblMain.ID_Num, tblMain.fldDate,Scope.Description,tblMain.Accomplishment from tblMain 
JOIN tblScope as SCOPE on  tblMain.Scope = Scope.Id
LEFT JOIN tblRatings as Rating on tblMain.RatingRefCode = Rating.ScopeCode 
where tblMain.ID_Num = @RefNo AND fldDate between @Start and @End
Group By tblMain.ID_Num, tblMain.fldDate,Scope.Description,tblMain.Accomplishment

我确实有名为MainReport.rdlc和SubReport.rdlc的RDLC文件。 Subreport.rdlc(显然,充当我的子报表)。我能够在主表中显示子报表的详细信息。但是问题...

asp.net vb.net rdlc
1个回答
0
投票

似乎您没有设置子报表参数。

© www.soinside.com 2019 - 2024. All rights reserved.