maximum number of subreports a report can contain
Hello,
I am using a report that has 2 subreports and when I create a 3rd it does not display any data on the form where they should be in the other 2 subreports.
My code is below.
I if take 1 subreport off and leave the other 2 then the report will display the data. but if i add another one then it displays nothing in the other 2 subreports.
I have used typed dataset. I don't have any groups, and deleted the links in the database expert of the report.
Code:
report.Load(Application.StartupPath & "/rptJobSheet5.rpt")
report.SetDataSource(DS_JobSheet2)
report.Subreports.Item(0).SetDataSource(DS_JobSheet2.Tables("IncidentTask"))
report.Subreports.Item(1).SetDataSource(DS_JobSheet2.Tables("Supportcontracts"))
report.Subreports.Item(2).SetDataSource(DS_JobSheet2.Tables("Client"))
Me.CrystalReportViewer1.ReportSource = report
Another quick question:
item(0) what name would this be in the properties of the subreport. I create the subreport using the wizard and have called it Client. but if i do this item("client") it shows an error. Also I have tried changing the name to this in the subreport properites | name. Should I use the index of the name property.
Thanks in advance,
Steve
Re: maximum number of subreports a report can contain