Answered by:
WPF Reports ( RDLC )

Question
-
Is it possible to add a report ( rdlc ) to WPF app? If so, any examples on how to do so? Basic demo would be good. ThanksFriday, January 16, 2009 2:16 PM
Answers
-
Quote Marco Zhou:
You can use WindowsFormsHost to host ReportViewer control in WPF application.
Bigsby, Lisboa, Portugal- Proposed as answer by Marco Zhou Monday, January 19, 2009 8:53 AM
- Unproposed as answer by Marco Zhou Monday, January 19, 2009 8:53 AM
- Proposed as answer by Marco Zhou Monday, January 19, 2009 8:57 AM
- Marked as answer by Marco Zhou Thursday, January 22, 2009 9:53 AM
Friday, January 16, 2009 2:33 PM -
The following codeproject article shows how to use the ReportViewer control:
http://www.codeproject.com/KB/cs/reportdisplay.aspx
Thanks
Another Paradigm Shift
http://shevaspace.blogspot.com- Marked as answer by Marco Zhou Thursday, January 22, 2009 9:53 AM
Monday, January 19, 2009 8:57 AM
All replies
-
Quote Marco Zhou:
You can use WindowsFormsHost to host ReportViewer control in WPF application.
Bigsby, Lisboa, Portugal- Proposed as answer by Marco Zhou Monday, January 19, 2009 8:53 AM
- Unproposed as answer by Marco Zhou Monday, January 19, 2009 8:53 AM
- Proposed as answer by Marco Zhou Monday, January 19, 2009 8:57 AM
- Marked as answer by Marco Zhou Thursday, January 22, 2009 9:53 AM
Friday, January 16, 2009 2:33 PM -
Thanks for the info. How do you go about adding the report to the winform host? Do you have a basic example? Thanks in advance.Friday, January 16, 2009 3:47 PM
-
Basically, WindowsFormsHost control provides a wrapper in WPF for System.Windows.Forms.Control derived classes. From then on the Control set as WindowsFormsHost.Child should be treated as before in Windows.Forms.
http://msdn.microsoft.com/en-us/library/system.windows.forms.integration.windowsformshost.aspx
Bigsby, Lisboa, PortugalFriday, January 16, 2009 5:31 PM -
Thanks for link. I came across this before and have used the winform host control. I was looking more for a basic example of how to create and add a report to a wpf app ( or winformhost control ). Also be able to print report programmatically, as well. I have not used the reports before. Any good examples, links, etc. would help. Thanks again.Friday, January 16, 2009 5:38 PM
-
The following codeproject article shows how to use the ReportViewer control:
http://www.codeproject.com/KB/cs/reportdisplay.aspx
Thanks
Another Paradigm Shift
http://shevaspace.blogspot.com- Marked as answer by Marco Zhou Thursday, January 22, 2009 9:53 AM
Monday, January 19, 2009 8:57 AM