Hello,
I am trying to pass parameters from user to report viewer with the following:
ReportWindow RW = new ReportWindow();
string reportPath = System.IO.Path.Combine(new DirectoryInfo("reports").FullName, "takrir-tarbawi16.rdl");
RW.ReportViewerControl.ReportPath = reportPath;
List<ReportParameter> parameters = new List<ReportParameter>();
ReportParameter parameter = new ReportParameter();
parameter.Name = "FactNum";
parameter.DefaultValue.Values.Add("456654");
parameters.Add(parameter);
RW.ReportViewerControl.SetParameters(parameters);
RW.ReportViewerControl.RefreshReport();
RW.Show();
Now I have an issue in compiling this, the error compiler sent:
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 1: cannot convert from 'System.Collections.Generic.List<Syncfusion.RDL.DOM.ReportParameter>' to 'System.Collections.Generic.IEnumerable<Syncfusion.Windows.Reports.ReportParameter>' TeacherReportWindow.xaml.cs 40 Active