更新:
我在这里问了一个更一般的问题:
Can I do two levels of linking in Crystal Reports?
我在VB.NET和Visual Studio 2005中使用Crystal报表。
下面显示了对话框的加载函数,其中包含CrystalReportsViewer。在Crystal Reports报告编辑器(VS 2005内)中,我设置了subreport链接,以仅将相关项拉入报告的该部分。
Imports System.Windows.Forms
Public Class dlgMyReport
Private rpt As New MyReport
Public theMainList As New List(Of MainStuff)
Dim theSubreportList As New List(Of SubreportStuff)
Private Sub dlgMyReport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
rpt.SetDataSource(theMainList)
If theSubreportStuff.Count > 0 Then
rpt.Subreports.Item("subReport").SetDataSource(theSubreportList)
End If
Me.StuffViewer.ReportSource = rpt
End Sub
... ' other subs and functions
End Class
现在,虽然,我需要做的本质上是相同的事情,但是根据
子报表
项目。这意味着在子报表中包含子报表。但是,我似乎无法做到这一点(当我尝试插入已经是子报表的内容时,插入子报表的选项变灰)。
有什么办法可以做到这一点吗(我能否以某种方式将子报表关系降低到另一个级别?)