reporting services - What is the best way to use a SSRS report viewer in a WPF application using MVVM -
I have a WPF application using MVVM. I have some user controls that show some SSRS reports in a report weaver control, hosted in host control of a windows format.
User control is a simple combobox where the user selects a criterion and therefore a report satisfying the criteria will be loaded, its data will be retrieved from the database and then the report will appear to the user. Will go.
What is the best way to implement such a scenario in WPF using MVVM? Any sample is appreciated
look
that WindowsFormsHost
and ReportViewer
in ViewModel
WindowsFormsHost windowsFormsHost = new WindowsFormsHost (); ReportViewer = New ReportViewer (); WindowsFormsHost.Child = reportViewer; this. Viewer = windowsFormsHost
and then use a ContentPresenter to display it
& lt; ContentPresenter Content = "{Binding Viewer}" />
Comments
Post a Comment