Using ActiveReports 7 with WPF
ActiveReports 7 is natively not supported in the WPF environment. However it can be hosted in WPF with the help of WPF's WindowsFormsHost control which allows you to host a Windows Forms control inside WPF applications. You just need to host the ActiveReports 7 Viewer control (which is responsible for rendering the report) using the WindowsFormHost control and you can view ActiveReports 7 reports in WPF . Here are the detailed steps to view both Section and Page Based reports in WPF
- Create a WPF Application Project using Visual Studio.
- Add the ActiveReports 7 Section Reports file template (code based file or Rpx) to this project and design the report as per your requirements.
- Add a Page Based Report to the Project and design your reports accordingly
- Add the WindowsFormsHost control to XAML designer page.
- Add the code given below to show Page Based Reports and Section Reports in WPF using the WindowsFormsHost Control.
Refer to the attached samples for complete implementation. Download C# Sample Download VB Sample