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.
Unfortunately, activation email could not send to your email. Please try again.

Parameters

Thread ID:

Created:

Updated:

Platform:

Replies:

117949 Jan 12,2015 08:21 PM Jan 14,2015 02:05 AM LightSwitch Silverlight 3
loading
Tags: ReportViewer
Osvaldo Djivelekian
Asked On January 12, 2015 08:21 PM

Hi everybody!

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

Thank you!

Nithya B [Syncfusion]
Replied On January 13, 2015 05:00 AM

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



Osvaldo Djivelekian
Replied On January 13, 2015 08:04 AM

Hi Nithya:

Thank you very much for the example provided.

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

Regards

Osvaldo




Mariya Joseph M [Syncfusion]
Replied On January 14, 2015 02:05 AM

Hi Osvaldo,

Thanks for the update.

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

Regards,

Mariya Joseph M.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;