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.

SfReportViewer in WinRT does not seem to allow parameters

Thread ID:

Created:

Updated:

Platform:

Replies:

110103 Jul 19,2013 12:22 AM Jul 19,2013 07:06 AM WinRT 1
loading
Tags: SfReportViewer
Richard Sebastian
Asked On July 19, 2013 12:22 AM

I have a report version that is very similar to examples.   My report renders just fine in all respects except that the viewer itself will not show parameters button (disabled).

I have added SetParameters() giving it the proper list and type.  Calling the GetParameters() function directly after setting returns an empty list.

All setting and getting are done within OnLoaded  event handler as indicated

this.reportViewer.ReportLoaded += reportViewer_ReportLoaded;

void reportViewer_ReportLoaded(object sender, EventArgs e

 

{

  _viewModel.Report.SetParameter();  // Set here

  _viewModel.Report.UpdateDataSet(); // Not here

}

// Never in the AppBar

Can anyone help?

 

 

 

 

 

 


Ragavan G [Syncfusion]
Replied On July 19, 2013 07:06 AM

Hi Rinchard ,

 

Thanks for your interest  in syncfusion products .

 

If the report not having Reportparameter we have disabled parameter option , Through SetParamters you can only values for corresponding parameters . We have attached Sample ReportViewer Application  for the requirement .

 

Code Snippet to set parameter

 

Set Parameter :

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

ReportParameter param = new ReportParameter();

param.Labels.Add("LableName"); // label name       

param.Values.Add("Values"); // value

param.Name = "ParameterName"; // Parameter name for to set values

parameters.Add(param);

reportViewerControl.SetParameters(parameters);

 

 

 

Please let me know if you have any questions .

 

Thanks ,

Ragavan .



WinRTSampleApplication_86208a84.zip

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.

;