We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon