I have set up the subreport and its parameters as instructed in various places on the site, and although the title of the subreport shows, no data is produced. The subreport is getting the correct value for the parameter being passed which I can tell by having the {Parameter.rOrdNo} printed in the title line.
However, again, no data is being selected.
The code behind for the subreport is shown below. What am I missing?
Thanks
public
partial class OrdProfMulti : Telerik.Reporting.Report
{
public OrdProfMulti( )
{
InitializeComponent();
try
{
this.arloeDataSet1TableAdapter1.GetData(Convert.ToInt32(this.Report.ReportParameters["rOrdNo"].Value.ToString()));
this.arloeDataSet1TableAdapter1.Fill(this.aRLOEDataSet1.ARLOEDataSet1Table, Convert.ToInt32(this.Report.ReportParameters["rOrdNo"].Value.ToString()));
}
catch (System.Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.Message);
}
}
private void OrdProfMulti_NeedDataSource( object sender, EventArgs e )
{
Telerik.Reporting.Processing.
Report report = (Telerik.Reporting.Processing.Report)sender;
this.arloeDataSet1TableAdapter1.GetData(Convert.ToDecimal(this.Report.ReportParameters["rOrdNo"].Value.ToString()));
this.arloeDataSet1TableAdapter1.Fill(this.aRLOEDataSet1.ARLOEDataSet1Table, Convert.ToDecimal(this.Report.ReportParameters["rOrdNo"].ToString()));
report.DataSource = aRLOEDataSet1;
}
}