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.

Parameters

Hi everybody!

Can anyone send me some code examples for passing parameters to a report?

Thank you!

3 Replies

NB Nithya B Syncfusion Team January 13, 2015 10:00 AM UTC

Hi Osvaldo,

Thanks for your interest in Syncfusion Products.

You can set ReportParameter values using SetParameters API in ReportViewer as shown in the below code snippet.

SetReportParameter.

List<ReportParameter> parameters = new List<ReportParameter>();

ReportParameter param = new ReportParameter();

param.Labels.Add("Bikes");

param.Values.Add("Bikes");

param.Name = "ProductCatagory";

parameters.Add(param);

reportViewer.SetParameters(parameters);

And also we have prepared a sample based on your requirements and it can be downloaded from the following location.

www.syncfusion.com/downloads/support/directtrac/117949/LightSwitch466334424.zip

Please let us know if you need any further assistance on this.

Regards,

Nithya




OD Osvaldo Djivelekian January 13, 2015 01:04 PM UTC

Hi Nithya:

Thank you very much for the example provided.

I'll do some tests and send you my comments.

Regards

Osvaldo





MJ Mariya Joseph M Syncfusion Team January 14, 2015 07:05 AM UTC

Hi Osvaldo,

Thanks for the update.

Please let us know, if you require further assistance on this.

Regards,

Mariya Joseph M.



Loader.
Up arrow icon