Report and subreport from a Dataset
I've got a report with 3 subreports on it. I also have a dataset that is built in memory (1 table with unique rows, and 3 tables that could have 2 or more rows linked back to the first table).
When I try to have a link from the subreport back to the main report, I am getting "Missing parameter values". I thought that the passing of the parameter field was handled internally when the report wizard builds the report.
So how do I get the parameters needed to be passed into the subreport?
:afrog:
Re: Report and subreport from a Dataset
Are you within a Visual Studio interface? I'd like to compare invokation method with you. When I upgraded from CR 8.5 to 11 the only data that will appear on my subreport is the link field.
Kirk from Little Rock
Re: Report and subreport from a Dataset
Re: Report and subreport from a Dataset
Are you programming within Visual Studio. I use vb.net.
Re: Report and subreport from a Dataset
Re: Report and subreport from a Dataset
Here is the pertinent code for to preview my crystall v.11 report in vs.net:
DataSetRptDocketBase1.Clear()
SqlRptDocketBase.Fill(DataSetRptDocketBase1)
DataSetRptSubDocketDetail1.Clear()
SqlRptSubDocketDetail.Fill(DataSetRptSubDocketDetail1)
Dim myreport As New RptDocketsShort
Dim RptDocketPreview As New frmPreviewReport(myreport)
myreport.SetDataSource(DataSetRptDocketBase1)
myreport.OpenSubreport("RptSubDocketDetail.rpt").SetDataSource_(DataSetRptSubDocketDetail1)
RptDocketPreview.ShowDialog()
My subreport is linked on a key field within both the datasets and also on both the parent report and the subreport. My problem is that when I upgraded from v8.5 to v11 in CR only the link field is being populated and printed. Any ideas?
Re: Report and subreport from a Dataset
Well, your first problem seems to be that you are hijacking my thread. But send me money and I'll forgive you.
:afrog: