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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Parameters

Thread ID:

Created:

Updated:

Platform:

Replies:

117949 Jan 13,2015 01:21 AM UTC Jan 14,2015 07:05 AM UTC LightSwitch Silverlight 3
loading
Tags: ReportViewer
Osvaldo Djivelekian
Asked On January 13, 2015 01:21 AM UTC

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 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



Osvaldo Djivelekian
Replied On 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




Mariya Joseph M [Syncfusion]
Replied On 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.



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.

Warning Icon 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.Close Icon

;