Hello,
we're currently using a silverlight report viewer and using this to pass a parameter :
I've used a and ProductCategory as in your example just for test, but with no luck... inside the report the ReportParameters field has Count = 0
can you please tell me if it can be a bug of the reportviewer or if I'm missing something really stupid?' Can you provide me a sample demo?
Thanks
Paolo
we're currently using a silverlight report viewer and using this to pass a parameter :
private void btnCarica_Click(object sender, RoutedEventArgs e) { cvContent.Content = null; Telerik.ReportViewer.Silverlight.ReportViewer report = new Telerik.ReportViewer.Silverlight.ReportViewer(); // report.VerticalAlignment = System.Windows.VerticalAlignment.Stretch; // report.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch; report.RenderBegin += new Telerik.ReportViewer.Silverlight.RenderBeginEventHandler(report_RenderBegin); report.ReportServiceUri = new Uri("../WebServices/TelerikReporting.svc",UriKind.Relative); report.Report = "Web.Reports.Rendicontazione.ReportRendiconto,Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"; cvContent.Content = report;// wr = new WeakReference(report); } private void report_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args) { int i = 0; string idRapporto = tbRapporto.Text; DateTime data = dtPicker.SelectedDate.Value; args.ParameterValues["ProductCategory"] = "Components"; args.ParameterValues.Add("a", "1"); }I've used a and ProductCategory as in your example just for test, but with no luck... inside the report the ReportParameters field has Count = 0
can you please tell me if it can be a bug of the reportviewer or if I'm missing something really stupid?' Can you provide me a sample demo?
Thanks
Paolo