I\'m doing some application development (CRM solution) which require generating diagrammatically an RDLC file at runtime. How do I do that?
ALL you have to do is change the the data source by coding. like
ReportViewer.LocalReport.DataSources.Clear();
ReportViewer.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local;
ReportDataSource RDS = new ReportDataSource();
RDS.Name = "DataSet";
RDS.Value = itemReportTableBindingSource;
ReportViewer.LocalReport.ReportEmbeddedResource = "RFID.Reports.ItemsReport.rdlc";
ReportViewer.LocalReport.DataSources.Add(RDS);
this.itemReportTableTableAdapter.Fill(this.reportsDataSet.ItemReportTable);
this.ReportViewer.RefreshReport();