Hi,I create Silverlight application, and want to known, it's possible send data from .xaml page to raport and bind it.And if it's possible, how can I do it.in .xaml page I write this code:
this.ctrlInfragisticsReport.RenderSettings = renderSettings; List<VV> lst = this.GetData(); Infragistics.Controls.Reports.DataSource s = new Infragistics.Controls.Reports.DataSource(); s.ItemsSource = lst; s.TargetDataSource = "VV"; Infragistics.Reports.DataSource ss = new Infragistics.Reports.DataSource(); ClientRenderSettings renderSettings = new ClientRenderSettings { DefinitionUri = "ReportsLib.Report1.igr, ReportsLib", };
renderSettings.DataSources.Add(s); this.ctrlInfragisticsReport.RenderSettings = renderSettings;
But nothing is displayed in raport :)
Thanks,Jaroslavas
Thank you for your post. I have been reading though it and I can suggest referring to the following article of our online documentation: http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0?page=How_to_Change_the_Data_Sources_at_Run_Time_Using_IReportDataSourceProvider.html. It goes though setting the data sources of a report in code at run time.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support