Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.
Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.
We thank you for choosing Syncfusion� and appreciate your understanding.
Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.
We thank you for choosing Syncfusion� and appreciate your understanding.
Pass Parameters from code behind
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
SIGN IN To post a reply.
3 Replies
BI
BELADEL ILYES ABDELRAZAK
July 31, 2017 12:42 AM UTC
It turns out that I am using diffrent refernce in another name space, now the code solved just by adding:
using Syncfusion.Windows.Reports;
VS
Vinoth Srinivasan
Syncfusion Team
July 31, 2017 04:53 AM UTC
Hi BELADEL,
Thanks for the update, we are glad that you have fixed the issue and please get back to us if you require any further assistance.
Regards,
Vinoth S.
BI
BELADEL ILYES ABDELRAZAK
July 31, 2017 05:06 PM UTC
It's my duty to do that, thanks.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
BI BELADEL ILYES ABDELRAZAK
- Jul 30, 2017 06:15 PM UTC
- Jul 31, 2017 05:06 PM UTC