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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Migrating from MS Report to WPF Reportviewer

Thread ID:





144109 Apr 18,2019 04:01 PM UTC Apr 23,2019 06:32 AM UTC WPF 1
Tags: ReportViewer
Asked On April 18, 2019 04:01 PM UTC

I'm using MS Reports for Forms in a WPF Desktopapplication. No I'm testing your WPF Reportviewer. I can't get it to work. I take a .rdlc File Version 2008 only with one Tablix table. At MS reports I have a DataSet.xsd File and connect the DataSource in the Code behind. With your report viewer I can't get the data into the report. I have already tried with a List element but without success. How can I add the data to the report at runtime?

Vinoth Srinivasan [Syncfusion]
Replied On April 23, 2019 06:32 AM UTC

Hi Kurt, 
Thanks for your interest in our Syncfusion Components. 
We can able to pass the datasource for RDLC report in code behind as shown in below code example. 
            public MainWindow() 
                this.Loaded += new RoutedEventHandler(MainWindow_Loaded); 
            void MainWindow_Loaded(object sender, RoutedEventArgs e) 
                this.viewer.DataSources.Add(new Syncfusion.Windows.Reports.ReportDataSource() 
                    Name = "Employee",// provide the dataset name 
                    Value = new AdventureWorksEntities().Addresses.Take(100)//pass the dataset value  
Please find the below help documentation for your reference to create RDLC report and pass the datasource at run time in code 
Vinoth S. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon