Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Send data from .xaml to report
posted

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