protected void LoadReport(ReportDataSource rptSource, string ReportFileName, List<ReportParameter> Param = null) { if (ReportViewer1.LocalReport.DataSources.Count > 0) { ReportViewer1.LocalReport.DataSources.RemoveAt(0); } ReportViewer1.LocalReport.DataSources.Add(rptSource); ReportViewer1.LocalReport.ReportPath = Server.MapPath(ReportFileName); if (Param != null) { ReportViewer1.LocalReport.SetParameters(Param); } ReportViewer1.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(localReport_SubreportProcessing); ReportViewer1.LocalReport.Refresh(); } void localReport_SubreportProcessing(object sender, SubreportProcessingEventArgs e) { e.DataSources.Add(new ReportDataSource("PricingHeader", TourPricingDAL.getTourPricingDetails(null, TourLaunchDetailsID))); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)