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
close icon
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.

SfReportViewer in WinRT does not seem to allow parameters

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?

 

 

 

 

 

 


1 Reply

RG Ragavan G Syncfusion Team July 19, 2013 11:06 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon