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

Reporting

I need to create a Windows Forms application that has the ability to view existing RDLC reports, and also to create new RDLC reports and view the results.

I know there are WPF controls for viewing and designing reports, but how come there are no Windows Forms equivalents?

How do I do reporting (viewing AND designing) in a Windows Forms application?

P.S. I know nothing about developing WPF applications!

1 Reply

NB Nithya B Syncfusion Team February 4, 2015 01:34 PM UTC

Hi Richard,

Thanks for using Syncfusion products.

Query

Response

I need to create a Windows Forms application that has the ability to view existing RDLC reports, and also to create new RDLC reports and view the results.

I know there are WPF controls for viewing and designing reports, but how come there are no Windows Forms equivalents?

Windows Forms Integration enable interoperation between the Windows Forms and WPF technologies. You can use ElementHost class to use a WPF element in a Windows Forms-based application. Please refer the following link for more details on this.

https://msdn.microsoft.com/en-us/library/System.Windows.Forms.Integration(v=vs.90).aspx

Viewing reports in a Windows Forms

You can use WPF ReportViewer control in WindowsForms using ElementHost, through which you can view existing reports in ReportViewer as shown in below code.

ElementHost host = new ElementHost();

host.Dock = DockStyle.Fill;

reportViewerControl.ProcessingMode = ProcessingMode.Local;

reportViewerControl.ReportPath = @"../../Company Sales.rdlc";

reportViewerControl.DataSources.Add(new ReportDataSource("Sales", new AdventureWorks().GetDataTable()));

reportViewerControl.RefreshReport();

host.Child = reportViewerControl;

We have prepared a sample based on this and it can be downloaded from the following location.

http://www.syncfusion.com/downloads/support/directtrac/general/ReportViewer1244864791.zip

Designing reports in a Windows Forms

We are facing some issues in using ReportDesigner in ElementHost, in order for you to get a solution for this behavior, please contact us at Syncfusion Support or you may also open a support ticket by login in to direct trac account and mention this forum link for reference.

Please let us know if you have any questions.

Regards,

Nithya B



Loader.
Live Chat Icon For mobile
Up arrow icon